From 31f855b5ad2df50adec0caf521e64d9a945f3ffe Mon Sep 17 00:00:00 2001 From: Ethan Yonker Date: Thu, 28 Jan 2016 22:31:48 -0600 Subject: Change some graphics build flags While not all of these old build flags are active or implemented yet (and they may not ever be implemeted until we find a device that needs them), we need to make sure that the old build flags are only applied when actually needed. Since there are a lot of device trees that probably won't get updated due to lack of device maintainers, we will rename the build flags and fix up devices on a case by case basis. Also added some pixel format related build flags to the make file from AOSP so that AOSP devices should work in TWRP without additional build flags. Change-Id: I11ab475297d02b6aeffe89404fe50b4799a36be3 --- minuitwrp/graphics_fbdev.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'minuitwrp/graphics_fbdev.cpp') 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(bits); -- cgit v1.2.3