diff options
Diffstat (limited to 'uisimulator/sdl')
-rw-r--r-- | uisimulator/sdl/lcd-bitmap.c | 4 |
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) | |||
105 | unsigned bits = lcd_framebuffer[y][x]; | 105 | unsigned bits = lcd_framebuffer[y][x]; |
106 | return (bits >> 8) | (bits << 8); | 106 | return (bits >> 8) | (bits << 8); |
107 | #else | 107 | #else |
108 | #if defined(LCD_STRIDEFORMAT) && LCD_STRIDEFORMAT == VERTICAL_STRIDE | ||
109 | return *(&lcd_framebuffer[0][0]+LCD_HEIGHT*x+y); | ||
110 | #else | ||
108 | return lcd_framebuffer[y][x]; | 111 | return lcd_framebuffer[y][x]; |
109 | #endif | 112 | #endif |
110 | #endif | 113 | #endif |
114 | #endif | ||
111 | } | 115 | } |
112 | 116 | ||
113 | void lcd_update(void) | 117 | void lcd_update(void) |