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/UI-mrobe100.bmp | Bin 309558 -> 309558 bytes uisimulator/sdl/button.c | 1 + uisimulator/sdl/lcd-bitmap.c | 7 ++++--- uisimulator/sdl/lcd-charcells.c | 6 ++++-- uisimulator/sdl/uisdl.h | 45 ++++++++++++++++++++++++++-------------- 5 files changed, 39 insertions(+), 20 deletions(-) (limited to 'uisimulator/sdl') diff --git a/uisimulator/sdl/UI-mrobe100.bmp b/uisimulator/sdl/UI-mrobe100.bmp index 17e7abcde1..19e5e1f3d3 100644 Binary files a/uisimulator/sdl/UI-mrobe100.bmp and b/uisimulator/sdl/UI-mrobe100.bmp differ diff --git a/uisimulator/sdl/button.c b/uisimulator/sdl/button.c index 0b347c9322..967f41baf7 100644 --- a/uisimulator/sdl/button.c +++ b/uisimulator/sdl/button.c @@ -702,6 +702,7 @@ void button_event(int key, bool pressed) case SDLK_SPACE: new_btn = BUTTON_SELECT; break; + case SDLK_KP_MULTIPLY: case SDLK_F8: case SDLK_ESCAPE: new_btn = BUTTON_POWER; 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< 0) { - sdl_set_gradient(lcd_surface, &lcd_backlight_color_zero, &lcd_color_max, + sdl_set_gradient(lcd_surface, &lcd_backlight_color_zero, + &lcd_backlight_color_max, 0, (1<