diff options
Diffstat (limited to 'firmware/target/hosted/sdl/lcd-bitmap.c')
-rw-r--r-- | firmware/target/hosted/sdl/lcd-bitmap.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/firmware/target/hosted/sdl/lcd-bitmap.c b/firmware/target/hosted/sdl/lcd-bitmap.c index 7e9bc297ef..5add2367a0 100644 --- a/firmware/target/hosted/sdl/lcd-bitmap.c +++ b/firmware/target/hosted/sdl/lcd-bitmap.c | |||
@@ -112,6 +112,8 @@ static unsigned long get_lcd_pixel(int x, int y) | |||
112 | #else | 112 | #else |
113 | return *FBADDR(x, y); | 113 | return *FBADDR(x, y); |
114 | #endif | 114 | #endif |
115 | #elif LCD_DEPTH == 24 | ||
116 | return FB_UNPACK_SCALAR_LCD(*FBADDR(x, y)); | ||
115 | #endif | 117 | #endif |
116 | } | 118 | } |
117 | 119 | ||
@@ -172,7 +174,7 @@ void sim_backlight(int value) | |||
172 | /* initialise simulator lcd driver */ | 174 | /* initialise simulator lcd driver */ |
173 | void lcd_init_device(void) | 175 | void lcd_init_device(void) |
174 | { | 176 | { |
175 | #if LCD_DEPTH == 16 | 177 | #if LCD_DEPTH >= 16 |
176 | lcd_surface = SDL_CreateRGBSurface(SDL_SWSURFACE, | 178 | lcd_surface = SDL_CreateRGBSurface(SDL_SWSURFACE, |
177 | SIM_LCD_WIDTH * display_zoom, | 179 | SIM_LCD_WIDTH * display_zoom, |
178 | SIM_LCD_HEIGHT * display_zoom, | 180 | SIM_LCD_HEIGHT * display_zoom, |