diff options
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 d6e9f90a7f..be908f20e5 100644 --- a/uisimulator/sdl/lcd-bitmap.c +++ b/uisimulator/sdl/lcd-bitmap.c | |||
@@ -25,7 +25,7 @@ SDL_Surface* lcd_surface; | |||
25 | int lcd_backlight_val; | 25 | int lcd_backlight_val; |
26 | 26 | ||
27 | #if LCD_DEPTH <= 8 | 27 | #if LCD_DEPTH <= 8 |
28 | #ifdef CONFIG_BACKLIGHT | 28 | #if CONFIG_BACKLIGHT |
29 | SDL_Color lcd_backlight_color_zero = {UI_LCD_BGCOLORLIGHT, 0}; | 29 | SDL_Color lcd_backlight_color_zero = {UI_LCD_BGCOLORLIGHT, 0}; |
30 | #endif | 30 | #endif |
31 | SDL_Color lcd_color_zero = {UI_LCD_BGCOLOR, 0}; | 31 | 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) | |||
71 | LCD_HEIGHT, background ? UI_LCD_POSX : 0, background? UI_LCD_POSY : 0); | 71 | LCD_HEIGHT, background ? UI_LCD_POSX : 0, background? UI_LCD_POSY : 0); |
72 | } | 72 | } |
73 | 73 | ||
74 | #ifdef CONFIG_BACKLIGHT | 74 | #if CONFIG_BACKLIGHT |
75 | void sim_backlight(int value) | 75 | void sim_backlight(int value) |
76 | { | 76 | { |
77 | lcd_backlight_val = value; | 77 | lcd_backlight_val = value; |
@@ -118,7 +118,7 @@ void sim_lcd_init(void) | |||
118 | #endif | 118 | #endif |
119 | 119 | ||
120 | #if LCD_DEPTH <= 8 | 120 | #if LCD_DEPTH <= 8 |
121 | #ifdef CONFIG_BACKLIGHT | 121 | #if CONFIG_BACKLIGHT |
122 | sdl_set_gradient(lcd_surface, &lcd_backlight_color_zero, &lcd_color_max, | 122 | sdl_set_gradient(lcd_surface, &lcd_backlight_color_zero, &lcd_color_max, |
123 | 0, (1<<LCD_DEPTH)); | 123 | 0, (1<<LCD_DEPTH)); |
124 | #else | 124 | #else |
@@ -134,7 +134,7 @@ void sim_lcd_ex_init(int shades, unsigned long (*getpixel)(int, int)) | |||
134 | lcd_ex_shades = shades; | 134 | lcd_ex_shades = shades; |
135 | lcd_ex_getpixel = getpixel; | 135 | lcd_ex_getpixel = getpixel; |
136 | if (shades) { | 136 | if (shades) { |
137 | #ifdef CONFIG_BACKLIGHT | 137 | #if CONFIG_BACKLIGHT |
138 | if (lcd_backlight_val > 0) { | 138 | if (lcd_backlight_val > 0) { |
139 | sdl_set_gradient(lcd_surface, &lcd_color_max, | 139 | sdl_set_gradient(lcd_surface, &lcd_color_max, |
140 | &lcd_backlight_color_zero, (1<<LCD_DEPTH), | 140 | &lcd_backlight_color_zero, (1<<LCD_DEPTH), |