diff options
Diffstat (limited to 'uisimulator/sdl/lcd-charcells.c')
-rw-r--r-- | uisimulator/sdl/lcd-charcells.c | 6 |
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); | |||
35 | SDL_Surface* lcd_surface; | 35 | SDL_Surface* lcd_surface; |
36 | SDL_Color lcd_color_zero = {UI_LCD_BGCOLOR, 0}; | 36 | SDL_Color lcd_color_zero = {UI_LCD_BGCOLOR, 0}; |
37 | SDL_Color lcd_backlight_color_zero = {UI_LCD_BGCOLORLIGHT, 0}; | 37 | SDL_Color lcd_backlight_color_zero = {UI_LCD_BGCOLORLIGHT, 0}; |
38 | SDL_Color lcd_color_max = {0, 0, 0, 0}; | 38 | SDL_Color lcd_color_max = {UI_LCD_FGCOLOR, 0}; |
39 | SDL_Color lcd_backlight_color_max = {UI_LCD_FGCOLORLIGHT, 0}; | ||
39 | 40 | ||
40 | 41 | ||
41 | static unsigned long get_lcd_pixel(int x, int y) | 42 | static unsigned long get_lcd_pixel(int x, int y) |
@@ -75,7 +76,8 @@ void lcd_update(void) | |||
75 | void sim_backlight(int value) | 76 | void 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, |