diff options
author | Ziyan <jaraidaniel@gmail.com> | 2016-01-28 01:19:35 +0100 |
---|---|---|
committer | Dees Troy <dees_troy@teamw.in> | 2016-01-29 03:02:47 +0100 |
commit | 4fea38a1d4b0541d97d6e2d530a5cf64534d9b17 (patch) | |
tree | fbc10bd0329e23506543baac2361459800903515 /minui | |
parent | data: fix setting brightness at startup (diff) | |
download | android_bootable_recovery-4fea38a1d4b0541d97d6e2d530a5cf64534d9b17.tar android_bootable_recovery-4fea38a1d4b0541d97d6e2d530a5cf64534d9b17.tar.gz android_bootable_recovery-4fea38a1d4b0541d97d6e2d530a5cf64534d9b17.tar.bz2 android_bootable_recovery-4fea38a1d4b0541d97d6e2d530a5cf64534d9b17.tar.lz android_bootable_recovery-4fea38a1d4b0541d97d6e2d530a5cf64534d9b17.tar.xz android_bootable_recovery-4fea38a1d4b0541d97d6e2d530a5cf64534d9b17.tar.zst android_bootable_recovery-4fea38a1d4b0541d97d6e2d530a5cf64534d9b17.zip |
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) { |