summaryrefslogtreecommitdiffstats
path: root/uisimulator/sdl/lcd-bitmap.c
diff options
context:
space:
mode:
authorRobert Kukla <roolku@rockbox.org>2008-03-02 21:28:26 +0000
committerRobert Kukla <roolku@rockbox.org>2008-03-02 21:28:26 +0000
commit3e3e1d518ead4c1f864f61b219fa975396fe75f2 (patch)
tree9881d351a37d037d2ce8d4905fea37ae77e16646 /uisimulator/sdl/lcd-bitmap.c
parent793fc3f0729103ad8d2c196f0783b9f36662f6bd (diff)
downloadrockbox-3e3e1d518ead4c1f864f61b219fa975396fe75f2.tar.gz
rockbox-3e3e1d518ead4c1f864f61b219fa975396fe75f2.zip
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
Diffstat (limited to 'uisimulator/sdl/lcd-bitmap.c')
-rw-r--r--uisimulator/sdl/lcd-bitmap.c7
1 files changed, 4 insertions, 3 deletions
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<<LCD_DEPTH));
+ &lcd_backlight_color_max, 0, (1<<LCD_DEPTH));
} else {
sdl_set_gradient(lcd_surface, &lcd_color_zero, &lcd_color_max,
0, (1<<LCD_DEPTH));
@@ -87,7 +88,7 @@ void sim_backlight(int value)
#if LCD_DEPTH < 8
if (lcd_ex_shades) {
if (value > 0) {
- sdl_set_gradient(lcd_surface, &lcd_color_max,
+ sdl_set_gradient(lcd_surface, &lcd_backlight_color_max,
&lcd_backlight_color_zero, (1<<LCD_DEPTH),
lcd_ex_shades);
} else {