diff options
author | Ethan Yonker <dees_troy@teamw.in> | 2016-01-29 05:31:48 +0100 |
---|---|---|
committer | Dees Troy <dees_troy@teamw.in> | 2016-02-03 03:57:53 +0100 |
commit | 31f855b5ad2df50adec0caf521e64d9a945f3ffe (patch) | |
tree | 87e330e5ff061620f6ec1d45486767534ba67338 /minuitwrp/graphics_fbdev.cpp | |
parent | gui: tweak storage selection (diff) | |
download | android_bootable_recovery-31f855b5ad2df50adec0caf521e64d9a945f3ffe.tar android_bootable_recovery-31f855b5ad2df50adec0caf521e64d9a945f3ffe.tar.gz android_bootable_recovery-31f855b5ad2df50adec0caf521e64d9a945f3ffe.tar.bz2 android_bootable_recovery-31f855b5ad2df50adec0caf521e64d9a945f3ffe.tar.lz android_bootable_recovery-31f855b5ad2df50adec0caf521e64d9a945f3ffe.tar.xz android_bootable_recovery-31f855b5ad2df50adec0caf521e64d9a945f3ffe.tar.zst android_bootable_recovery-31f855b5ad2df50adec0caf521e64d9a945f3ffe.zip |
Diffstat (limited to 'minuitwrp/graphics_fbdev.cpp')
-rw-r--r-- | minuitwrp/graphics_fbdev.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/minuitwrp/graphics_fbdev.cpp b/minuitwrp/graphics_fbdev.cpp index 5da329bf1..24294be0c 100644 --- a/minuitwrp/graphics_fbdev.cpp +++ b/minuitwrp/graphics_fbdev.cpp @@ -147,7 +147,7 @@ static GRSurface* fbdev_init(minui_backend* backend) { memset(bits, 0, fi.smem_len); -#ifdef RECOVERY_RGB_565 +#ifdef RECOVERY_FORCE_RGB_565 printf("Forcing pixel format: RGB_565\n"); vi.blue.offset = 0; vi.green.offset = 5; @@ -167,7 +167,8 @@ static GRSurface* fbdev_init(minui_backend* backend) { gr_framebuffer[0].height = vi.yres; gr_framebuffer[0].row_bytes = fi.line_length; gr_framebuffer[0].pixel_bytes = vi.bits_per_pixel / 8; -#ifdef RECOVERY_GRAPHICS_USE_LINELENGTH +#ifdef RECOVERY_GRAPHICS_FORCE_USE_LINELENGTH + printf("Forcing line length\n"); vi.xres_virtual = fi.line_length / gr_framebuffer[0].pixel_bytes; #endif gr_framebuffer[0].data = reinterpret_cast<uint8_t*>(bits); |