1
0
Fork 0
forked from len0rd/rockbox

Adjustments for simulating a backlight-modded Ondio.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10038 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2006-06-03 12:09:12 +00:00
parent 9ae0c957c8
commit ae0c1af6ce
2 changed files with 9 additions and 2 deletions

View file

@ -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<<LCD_DEPTH));
#else
sdl_set_gradient(lcd_surface, &lcd_color_zero, &lcd_color_max, 0,
(1<<LCD_DEPTH));
#endif
#endif
}