From 3e3e1d518ead4c1f864f61b219fa975396fe75f2 Mon Sep 17 00:00:00 2001 From: Robert Kukla Date: Sun, 2 Mar 2008 21:28:26 +0000 Subject: simulator: - correct colours for m:robe 100 display & screendump - labelled button on background git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16488 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/sdl/lcd-bitmap.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'uisimulator/sdl/lcd-bitmap.c') diff --git a/uisimulator/sdl/lcd-bitmap.c b/uisimulator/sdl/lcd-bitmap.c index 7b6e2217c6..438b133804 100644 --- a/uisimulator/sdl/lcd-bitmap.c +++ b/uisimulator/sdl/lcd-bitmap.c @@ -27,9 +27,10 @@ int lcd_backlight_val; #if LCD_DEPTH <= 8 #ifdef HAVE_BACKLIGHT SDL_Color lcd_backlight_color_zero = {UI_LCD_BGCOLORLIGHT, 0}; +SDL_Color lcd_backlight_color_max = {UI_LCD_FGCOLORLIGHT, 0}; #endif SDL_Color lcd_color_zero = {UI_LCD_BGCOLOR, 0}; -SDL_Color lcd_color_max = {0, 0, 0, 0}; +SDL_Color lcd_color_max = {UI_LCD_FGCOLOR, 0}; #endif #if LCD_DEPTH < 8 @@ -79,7 +80,7 @@ void sim_backlight(int value) #if LCD_DEPTH <= 8 if (value > 0) { sdl_set_gradient(lcd_surface, &lcd_backlight_color_zero, - &lcd_color_max, 0, (1< 0) { - sdl_set_gradient(lcd_surface, &lcd_color_max, + sdl_set_gradient(lcd_surface, &lcd_backlight_color_max, &lcd_backlight_color_zero, (1<