From ae0c1af6ce39b2dc770d33f3a4fb1cdb1308533f Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Sat, 3 Jun 2006 12:09:12 +0000 Subject: Adjustments for simulating a backlight-modded Ondio. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10038 a1c6a512-1295-4272-9138-f99709370657 --- uisimulator/sdl/lcd-bitmap.c | 9 ++++++++- uisimulator/sdl/uisdl.h | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'uisimulator/sdl') 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<