1
0
Fork 0
forked from len0rd/rockbox

Fix CONFIG_BACKLIGHT warnings.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12393 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2007-02-18 10:07:27 +00:00
parent da88e84f48
commit 3a37f46fc9
18 changed files with 51 additions and 48 deletions

View file

@ -25,7 +25,7 @@ SDL_Surface* lcd_surface;
int lcd_backlight_val;
#if LCD_DEPTH <= 8
#ifdef CONFIG_BACKLIGHT
#if CONFIG_BACKLIGHT
SDL_Color lcd_backlight_color_zero = {UI_LCD_BGCOLORLIGHT, 0};
#endif
SDL_Color lcd_color_zero = {UI_LCD_BGCOLOR, 0};
@ -71,7 +71,7 @@ void lcd_update_rect(int x_start, int y_start, int width, int height)
LCD_HEIGHT, background ? UI_LCD_POSX : 0, background? UI_LCD_POSY : 0);
}
#ifdef CONFIG_BACKLIGHT
#if CONFIG_BACKLIGHT
void sim_backlight(int value)
{
lcd_backlight_val = value;
@ -118,7 +118,7 @@ void sim_lcd_init(void)
#endif
#if LCD_DEPTH <= 8
#ifdef CONFIG_BACKLIGHT
#if CONFIG_BACKLIGHT
sdl_set_gradient(lcd_surface, &lcd_backlight_color_zero, &lcd_color_max,
0, (1<<LCD_DEPTH));
#else
@ -134,7 +134,7 @@ void sim_lcd_ex_init(int shades, unsigned long (*getpixel)(int, int))
lcd_ex_shades = shades;
lcd_ex_getpixel = getpixel;
if (shades) {
#ifdef CONFIG_BACKLIGHT
#if CONFIG_BACKLIGHT
if (lcd_backlight_val > 0) {
sdl_set_gradient(lcd_surface, &lcd_color_max,
&lcd_backlight_color_zero, (1<<LCD_DEPTH),