diff options
-rw-r--r-- | uisimulator/sdl/lcd-bitmap.c | 9 | ||||
-rw-r--r-- | uisimulator/sdl/uisdl.h | 2 |
2 files changed, 9 insertions, 2 deletions
diff --git a/uisimulator/sdl/lcd-bitmap.c b/uisimulator/sdl/lcd-bitmap.c index da4050461c..d6e9f90a7f 100644 --- a/uisimulator/sdl/lcd-bitmap.c +++ b/uisimulator/sdl/lcd-bitmap.c @@ -25,8 +25,10 @@ SDL_Surface* lcd_surface; int lcd_backlight_val; #if LCD_DEPTH <= 8 -SDL_Color lcd_color_zero = {UI_LCD_BGCOLOR, 0}; +#ifdef CONFIG_BACKLIGHT SDL_Color lcd_backlight_color_zero = {UI_LCD_BGCOLORLIGHT, 0}; +#endif +SDL_Color lcd_color_zero = {UI_LCD_BGCOLOR, 0}; SDL_Color lcd_color_max = {0, 0, 0, 0}; #endif @@ -116,8 +118,13 @@ void sim_lcd_init(void) #endif #if LCD_DEPTH <= 8 +#ifdef CONFIG_BACKLIGHT 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, 0, + (1<<LCD_DEPTH)); +#endif #endif } diff --git a/uisimulator/sdl/uisdl.h b/uisimulator/sdl/uisdl.h index 5296e6dfa4..afd9678f32 100644 --- a/uisimulator/sdl/uisdl.h +++ b/uisimulator/sdl/uisdl.h @@ -66,7 +66,7 @@ #define UI_WIDTH 155 /* width of GUI window */ #define UI_HEIGHT 334 /* height of GUI window */ #define UI_LCD_BGCOLOR 90, 145, 90 /* bkgnd color of LCD (no backlight) */ -#define UI_LCD_BGCOLORLIGHT 90, 145, 90 /* bkgnd color of LCD (backlight) */ +#define UI_LCD_BGCOLORLIGHT 130, 180, 250 /* bkgnd color of LCD (backlight mod) */ #define UI_LCD_BLACK 0, 0, 0 /* black */ #define UI_LCD_POSX 21 /* x position of lcd */ #define UI_LCD_POSY 82 /* y position of lcd (74 for real aspect) */ |