summaryrefslogtreecommitdiff
path: root/uisimulator/sdl/lcd-charcells.c
diff options
context:
space:
mode:
Diffstat (limited to 'uisimulator/sdl/lcd-charcells.c')
-rw-r--r--uisimulator/sdl/lcd-charcells.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/uisimulator/sdl/lcd-charcells.c b/uisimulator/sdl/lcd-charcells.c
index 722933f002..85ff9678e4 100644
--- a/uisimulator/sdl/lcd-charcells.c
+++ b/uisimulator/sdl/lcd-charcells.c
@@ -35,7 +35,8 @@ extern int sim_creat(const char *name);
35SDL_Surface* lcd_surface; 35SDL_Surface* lcd_surface;
36SDL_Color lcd_color_zero = {UI_LCD_BGCOLOR, 0}; 36SDL_Color lcd_color_zero = {UI_LCD_BGCOLOR, 0};
37SDL_Color lcd_backlight_color_zero = {UI_LCD_BGCOLORLIGHT, 0}; 37SDL_Color lcd_backlight_color_zero = {UI_LCD_BGCOLORLIGHT, 0};
38SDL_Color lcd_color_max = {0, 0, 0, 0}; 38SDL_Color lcd_color_max = {UI_LCD_FGCOLOR, 0};
39SDL_Color lcd_backlight_color_max = {UI_LCD_FGCOLORLIGHT, 0};
39 40
40 41
41static unsigned long get_lcd_pixel(int x, int y) 42static unsigned long get_lcd_pixel(int x, int y)
@@ -75,7 +76,8 @@ void lcd_update(void)
75void sim_backlight(int value) 76void sim_backlight(int value)
76{ 77{
77 if (value > 0) { 78 if (value > 0) {
78 sdl_set_gradient(lcd_surface, &lcd_backlight_color_zero, &lcd_color_max, 79 sdl_set_gradient(lcd_surface, &lcd_backlight_color_zero,
80 &lcd_backlight_color_max,
79 0, (1<<LCD_DEPTH)); 81 0, (1<<LCD_DEPTH));
80 } else { 82 } else {
81 sdl_set_gradient(lcd_surface, &lcd_color_zero, &lcd_color_max, 83 sdl_set_gradient(lcd_surface, &lcd_color_zero, &lcd_color_max,