summaryrefslogtreecommitdiff
path: root/uisimulator
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2007-02-18 10:07:27 +0000
committerJens Arnold <amiconn@rockbox.org>2007-02-18 10:07:27 +0000
commit3a37f46fc92fe7f9846a4077cc1a985c500d1174 (patch)
tree76541ae462f02ede816ab3f9b42f5207f068658c /uisimulator
parentda88e84f482c8c96c0d64bf67969b6e9dd9a8379 (diff)
Fix CONFIG_BACKLIGHT warnings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12393 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/sdl/button.c10
-rw-r--r--uisimulator/sdl/lcd-bitmap.c8
-rw-r--r--uisimulator/sdl/lcd-charcell.c2
3 files changed, 10 insertions, 10 deletions
diff --git a/uisimulator/sdl/button.c b/uisimulator/sdl/button.c
index f5da828914..6f274dd56d 100644
--- a/uisimulator/sdl/button.c
+++ b/uisimulator/sdl/button.c
@@ -49,7 +49,7 @@ struct event_queue button_queue;
static int btn = 0; /* Hopefully keeps track of currently pressed keys... */
-#ifdef CONFIG_BACKLIGHT
+#if CONFIG_BACKLIGHT
static bool filter_first_keypress;
void set_backlight_filter_keypress(bool value)
@@ -76,7 +76,7 @@ void button_event(int key, bool pressed)
static int repeat_count = 0;
static bool repeat = false;
static bool post = false;
-#ifdef CONFIG_BACKLIGHT
+#if CONFIG_BACKLIGHT
static bool skip_release = false;
#ifdef HAVE_REMOTE_LCD
static bool skip_remote_release = false;
@@ -520,7 +520,7 @@ void button_event(int key, bool pressed)
diff = btn ^ lastbtn;
if(diff && (btn & diff) == 0)
{
-#ifdef CONFIG_BACKLIGHT
+#if CONFIG_BACKLIGHT
#ifdef HAVE_REMOTE_LCD
if(diff & BUTTON_REMOTE)
if(!skip_remote_release)
@@ -587,7 +587,7 @@ void button_event(int key, bool pressed)
if (queue_empty(&button_queue))
{
queue_post(&button_queue, BUTTON_REPEAT | btn, 0);
-#ifdef CONFIG_BACKLIGHT
+#if CONFIG_BACKLIGHT
#ifdef HAVE_REMOTE_LCD
if(btn & BUTTON_REMOTE)
{
@@ -604,7 +604,7 @@ void button_event(int key, bool pressed)
}
else
{
-#ifdef CONFIG_BACKLIGHT
+#if CONFIG_BACKLIGHT
#ifdef HAVE_REMOTE_LCD
if (btn & BUTTON_REMOTE) {
if (!remote_filter_first_keypress || is_remote_backlight_on())
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;
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),
diff --git a/uisimulator/sdl/lcd-charcell.c b/uisimulator/sdl/lcd-charcell.c
index 59ae39a248..cb31d6349b 100644
--- a/uisimulator/sdl/lcd-charcell.c
+++ b/uisimulator/sdl/lcd-charcell.c
@@ -114,7 +114,7 @@ void drawrectangles(int color, struct rectangle *points, int count)
SDL_UnlockSurface(lcd_surface);
}
-#ifdef CONFIG_BACKLIGHT
+#if CONFIG_BACKLIGHT
void sim_backlight(int value)
{
if (value > 0) {