diff options
author | Robert Kukla <roolku@rockbox.org> | 2008-03-02 21:28:26 +0000 |
---|---|---|
committer | Robert Kukla <roolku@rockbox.org> | 2008-03-02 21:28:26 +0000 |
commit | 3e3e1d518ead4c1f864f61b219fa975396fe75f2 (patch) | |
tree | 9881d351a37d037d2ce8d4905fea37ae77e16646 /uisimulator/sdl/lcd-bitmap.c | |
parent | 793fc3f0729103ad8d2c196f0783b9f36662f6bd (diff) | |
download | rockbox-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.c | 7 |
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; | |||
27 | #if LCD_DEPTH <= 8 | 27 | #if LCD_DEPTH <= 8 |
28 | #ifdef HAVE_BACKLIGHT | 28 | #ifdef HAVE_BACKLIGHT |
29 | SDL_Color lcd_backlight_color_zero = {UI_LCD_BGCOLORLIGHT, 0}; | 29 | SDL_Color lcd_backlight_color_zero = {UI_LCD_BGCOLORLIGHT, 0}; |
30 | SDL_Color lcd_backlight_color_max = {UI_LCD_FGCOLORLIGHT, 0}; | ||
30 | #endif | 31 | #endif |
31 | SDL_Color lcd_color_zero = {UI_LCD_BGCOLOR, 0}; | 32 | SDL_Color lcd_color_zero = {UI_LCD_BGCOLOR, 0}; |
32 | SDL_Color lcd_color_max = {0, 0, 0, 0}; | 33 | SDL_Color lcd_color_max = {UI_LCD_FGCOLOR, 0}; |
33 | #endif | 34 | #endif |
34 | 35 | ||
35 | #if LCD_DEPTH < 8 | 36 | #if LCD_DEPTH < 8 |
@@ -79,7 +80,7 @@ void sim_backlight(int value) | |||
79 | #if LCD_DEPTH <= 8 | 80 | #if LCD_DEPTH <= 8 |
80 | if (value > 0) { | 81 | if (value > 0) { |
81 | sdl_set_gradient(lcd_surface, &lcd_backlight_color_zero, | 82 | sdl_set_gradient(lcd_surface, &lcd_backlight_color_zero, |
82 | &lcd_color_max, 0, (1<<LCD_DEPTH)); | 83 | &lcd_backlight_color_max, 0, (1<<LCD_DEPTH)); |
83 | } else { | 84 | } else { |
84 | sdl_set_gradient(lcd_surface, &lcd_color_zero, &lcd_color_max, | 85 | sdl_set_gradient(lcd_surface, &lcd_color_zero, &lcd_color_max, |
85 | 0, (1<<LCD_DEPTH)); | 86 | 0, (1<<LCD_DEPTH)); |
@@ -87,7 +88,7 @@ void sim_backlight(int value) | |||
87 | #if LCD_DEPTH < 8 | 88 | #if LCD_DEPTH < 8 |
88 | if (lcd_ex_shades) { | 89 | if (lcd_ex_shades) { |
89 | if (value > 0) { | 90 | if (value > 0) { |
90 | sdl_set_gradient(lcd_surface, &lcd_color_max, | 91 | sdl_set_gradient(lcd_surface, &lcd_backlight_color_max, |
91 | &lcd_backlight_color_zero, (1<<LCD_DEPTH), | 92 | &lcd_backlight_color_zero, (1<<LCD_DEPTH), |
92 | lcd_ex_shades); | 93 | lcd_ex_shades); |
93 | } else { | 94 | } else { |