summaryrefslogtreecommitdiffstats
path: root/uisimulator/sdl/lcd-charcell.c
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/sdl/lcd-charcell.c')
-rw-r--r--uisimulator/sdl/lcd-charcell.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/uisimulator/sdl/lcd-charcell.c b/uisimulator/sdl/lcd-charcell.c
index 2ef86d0baf..89c46f7738 100644
--- a/uisimulator/sdl/lcd-charcell.c
+++ b/uisimulator/sdl/lcd-charcell.c
@@ -109,9 +109,11 @@ void drawrectangles(int color, struct rectangle *points, int count)
void sim_backlight(int value)
{
if (value > 0) {
- sdl_set_gradient(lcd_surface, &lcd_backlight_color_zero, &lcd_color_max, (1<<LCD_DEPTH));
+ sdl_set_gradient(lcd_surface, &lcd_backlight_color_zero, &lcd_color_max,
+ 0, (1<<LCD_DEPTH));
} else {
- sdl_set_gradient(lcd_surface, &lcd_color_zero, &lcd_color_max, (1<<LCD_DEPTH));
+ sdl_set_gradient(lcd_surface, &lcd_color_zero, &lcd_color_max,
+ 0, (1<<LCD_DEPTH));
}
lcd_update();
@@ -124,6 +126,7 @@ void sim_lcd_init(void)
lcd_surface = SDL_CreateRGBSurface(SDL_SWSURFACE, LCD_WIDTH * display_zoom,
LCD_HEIGHT * display_zoom, 8, 0, 0, 0, 0);
- sdl_set_gradient(lcd_surface, &lcd_color_zero, &lcd_color_max, (1<<LCD_DEPTH));
+ sdl_set_gradient(lcd_surface, &lcd_backlight_color_zero, &lcd_color_max,
+ 0, (1<<LCD_DEPTH));
}