twrp: default to GGL_PIXEL_FORMAT_BGRA_8888 if vi.red.offset == 16
Change-Id: I436bab6ef679168d3625d8e1837917077cf89908
diff --git a/minuitwrp/graphics_fbdev.cpp b/minuitwrp/graphics_fbdev.cpp
index 10ef4fe..e653c5a 100644
--- a/minuitwrp/graphics_fbdev.cpp
+++ b/minuitwrp/graphics_fbdev.cpp
@@ -174,7 +174,7 @@
if (vi.bits_per_pixel == 16) {
printf("setting GGL_PIXEL_FORMAT_RGB_565\n");
gr_framebuffer[0].format = GGL_PIXEL_FORMAT_RGB_565;
- } else if (vi.red.offset == 8) {
+ } else if (vi.red.offset == 8 || vi.red.offset == 16) {
printf("setting GGL_PIXEL_FORMAT_BGRA_8888\n");
gr_framebuffer[0].format = GGL_PIXEL_FORMAT_BGRA_8888;
} else if (vi.red.offset == 0) {