Define framebuffer for 16-bit displays


git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7854 a1c6a512-1295-4272-9138-f99709370657
diff --git a/uisimulator/x11/lcd-x11.c b/uisimulator/x11/lcd-x11.c
index 75e29f3..41bf0d1 100644
--- a/uisimulator/x11/lcd-x11.c
+++ b/uisimulator/x11/lcd-x11.c
@@ -52,8 +52,13 @@
 extern bool lcd_display_redraw;
 
 #ifdef HAVE_LCD_BITMAP
+#if LCD_DEPTH==16
+extern unsigned char lcd_framebuffer[LCD_HEIGHT][LCD_WIDTH*2];
+unsigned char lcd_framebuffer_copy[LCD_HEIGHT][LCD_WIDTH*2];
+#else
 extern unsigned char lcd_framebuffer[LCD_HEIGHT/YBLOCK][LCD_WIDTH];
 unsigned char lcd_framebuffer_copy[LCD_HEIGHT/YBLOCK][LCD_WIDTH];
+#endif
 
 void lcd_update (void)
 {