summaryrefslogtreecommitdiffstats
path: root/uisimulator/sdl
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/sdl')
-rw-r--r--uisimulator/sdl/lcd-bitmap.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/uisimulator/sdl/lcd-bitmap.c b/uisimulator/sdl/lcd-bitmap.c
index 378889c417..3c73b6fc5d 100644
--- a/uisimulator/sdl/lcd-bitmap.c
+++ b/uisimulator/sdl/lcd-bitmap.c
@@ -105,9 +105,13 @@ static unsigned long get_lcd_pixel(int x, int y)
unsigned bits = lcd_framebuffer[y][x];
return (bits >> 8) | (bits << 8);
#else
+#if defined(LCD_STRIDEFORMAT) && LCD_STRIDEFORMAT == VERTICAL_STRIDE
+ return *(&lcd_framebuffer[0][0]+LCD_HEIGHT*x+y);
+#else
return lcd_framebuffer[y][x];
#endif
#endif
+#endif
}
void lcd_update(void)