diff options
author | Jens Arnold <amiconn@rockbox.org> | 2007-04-12 22:12:13 +0000 |
---|---|---|
committer | Jens Arnold <amiconn@rockbox.org> | 2007-04-12 22:12:13 +0000 |
commit | 47bf6c5a5ad1fd9143ab87328793b285230f74a3 (patch) | |
tree | 5199f2225a3dfc438bb1c4c5e9906f14664dfa43 /uisimulator/sdl/lcd-bitmap.c | |
parent | 734278b7d1fde5e177c6842f49c16b9df8c353fa (diff) | |
download | rockbox-47bf6c5a5ad1fd9143ab87328793b285230f74a3.tar.gz rockbox-47bf6c5a5ad1fd9143ab87328793b285230f74a3.zip |
Moved archos backlight code to target tree. Changed old mutlivalue CONFIG_BACKLIGHT to a simple HAVE_BACKLIGHT.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13136 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/sdl/lcd-bitmap.c')
-rw-r--r-- | uisimulator/sdl/lcd-bitmap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/uisimulator/sdl/lcd-bitmap.c b/uisimulator/sdl/lcd-bitmap.c index 3adb72b6d6..da6acce1bc 100644 --- a/uisimulator/sdl/lcd-bitmap.c +++ b/uisimulator/sdl/lcd-bitmap.c @@ -25,7 +25,7 @@ SDL_Surface* lcd_surface; int lcd_backlight_val; #if LCD_DEPTH <= 8 -#if CONFIG_BACKLIGHT +#ifdef HAVE_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); } -#if CONFIG_BACKLIGHT +#ifdef HAVE_BACKLIGHT void sim_backlight(int value) { lcd_backlight_val = value; @@ -116,7 +116,7 @@ void sim_lcd_init(void) #endif #if LCD_DEPTH <= 8 -#if CONFIG_BACKLIGHT +#ifdef HAVE_BACKLIGHT sdl_set_gradient(lcd_surface, &lcd_backlight_color_zero, &lcd_color_max, 0, (1<<LCD_DEPTH)); #else @@ -132,7 +132,7 @@ void sim_lcd_ex_init(int shades, unsigned long (*getpixel)(int, int)) lcd_ex_shades = shades; lcd_ex_getpixel = getpixel; if (shades) { -#if CONFIG_BACKLIGHT +#ifdef HAVE_BACKLIGHT if (lcd_backlight_val > 0) { sdl_set_gradient(lcd_surface, &lcd_color_max, &lcd_backlight_color_zero, (1<<LCD_DEPTH), |