Add BOARD_HAS_JANKY_BACKBUFFER for terrible Galaxy Tabs.
Change-Id: I72e7a8aaf65c97d4cd2b77ff92cf7232f8c9e7a7
diff --git a/minui/graphics.c b/minui/graphics.c
index a96342f..8125b92 100644
--- a/minui/graphics.c
+++ b/minui/graphics.c
@@ -101,7 +101,11 @@
fb->width = vi.xres;
fb->height = vi.yres;
fb->stride = fi.line_length/2;
+#ifdef BOARD_HAS_JANKY_BACKBUFFER
+ fb->data = (void*) (((unsigned) bits) + vi.yres * fi.line_length);
+#else
fb->data = (void*) (((unsigned) bits) + vi.yres * fi.line_length / 2);
+#endif
fb->format = GGL_PIXEL_FORMAT_RGB_565;
memset(fb->data, 0, vi.yres * vi.xres * 2);