diff options
Diffstat (limited to '')
-rw-r--r-- | minuitwrp/graphics_fbdev.cpp | 2 | ||||
-rw-r--r-- | minuitwrp/graphics_overlay.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/minuitwrp/graphics_fbdev.cpp b/minuitwrp/graphics_fbdev.cpp index 10ef4fec2..e653c5a4a 100644 --- a/minuitwrp/graphics_fbdev.cpp +++ b/minuitwrp/graphics_fbdev.cpp @@ -174,7 +174,7 @@ static GRSurface* fbdev_init(minui_backend* backend) { 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) { diff --git a/minuitwrp/graphics_overlay.cpp b/minuitwrp/graphics_overlay.cpp index 5445b6f62..c59fe907c 100644 --- a/minuitwrp/graphics_overlay.cpp +++ b/minuitwrp/graphics_overlay.cpp @@ -583,7 +583,7 @@ static GRSurface* overlay_init(minui_backend* backend) { if (vi.bits_per_pixel == 16) { printf("setting GGL_PIXEL_FORMAT_RGB_565\n"); gr_framebuffer.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.format = GGL_PIXEL_FORMAT_BGRA_8888; } else if (vi.red.offset == 0) { |