diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2007-02-18 10:07:27 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2007-02-18 10:07:27 +0000 |
| commit | 3a37f46fc92fe7f9846a4077cc1a985c500d1174 (patch) | |
| tree | 76541ae462f02ede816ab3f9b42f5207f068658c /apps | |
| parent | da88e84f482c8c96c0d64bf67969b6e9dd9a8379 (diff) | |
| download | rockbox-3a37f46fc92fe7f9846a4077cc1a985c500d1174.zip rockbox-3a37f46fc92fe7f9846a4077cc1a985c500d1174.tar.gz rockbox-3a37f46fc92fe7f9846a4077cc1a985c500d1174.tar.bz2 rockbox-3a37f46fc92fe7f9846a4077cc1a985c500d1174.tar.xz | |
Fix CONFIG_BACKLIGHT warnings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12393 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/gui/gwps-common.c | 2 | ||||
| -rw-r--r-- | apps/menus/display_menu.c | 6 | ||||
| -rw-r--r-- | apps/plugins/jpeg.c | 4 | ||||
| -rw-r--r-- | apps/plugins/mpegplayer/mpegplayer.c | 4 | ||||
| -rw-r--r-- | apps/recorder/peakmeter.c | 6 | ||||
| -rw-r--r-- | apps/settings.c | 4 | ||||
| -rw-r--r-- | apps/settings.h | 2 | ||||
| -rw-r--r-- | apps/settings_list.c | 12 | ||||
| -rw-r--r-- | apps/sound_menu.c | 4 |
9 files changed, 22 insertions, 22 deletions
diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c index 0768c32..619159d 100644 --- a/apps/gui/gwps-common.c +++ b/apps/gui/gwps-common.c @@ -2100,7 +2100,7 @@ bool gui_wps_refresh(struct gui_wps *gwps, int ffwd_offset, data->peak_meter_enabled = enable_pm; #endif -#ifdef CONFIG_BACKLIGHT +#if CONFIG_BACKLIGHT if (global_settings.caption_backlight && state->id3) { /* turn on backlight n seconds before track ends, and turn it off n seconds into the new track. n == backlight_timeout, or 5s */ diff --git a/apps/menus/display_menu.c b/apps/menus/display_menu.c index 5dc14ce..143b47e 100644 --- a/apps/menus/display_menu.c +++ b/apps/menus/display_menu.c @@ -38,7 +38,7 @@ #include "lcd-remote.h" -#ifdef CONFIG_BACKLIGHT +#if CONFIG_BACKLIGHT int filterfirstkeypress_callback(int action,const struct menu_item_ex *this_item) { (void)this_item; @@ -77,7 +77,7 @@ int flipdisplay_callback(int action,const struct menu_item_ex *this_item) /***********************************/ /* LCD MENU */ -#ifdef CONFIG_BACKLIGHT +#if CONFIG_BACKLIGHT MENUITEM_SETTING(backlight_timeout, &global_settings.backlight_timeout, NULL); #if CONFIG_CHARGING MENUITEM_SETTING(backlight_timeout_plugged, @@ -172,7 +172,7 @@ MENUITEM_FUNCTION(reset_colors, ID2P(LANG_RESET_COLORS), /* now the actual menu */ MAKE_MENU(lcd_settings,ID2P(LANG_LCD_MENU), NULL, bitmap_icons_6x8[Icon_Display_menu] -#ifdef CONFIG_BACKLIGHT +#if CONFIG_BACKLIGHT ,&backlight_timeout # if CONFIG_CHARGING ,&backlight_timeout_plugged diff --git a/apps/plugins/jpeg.c b/apps/plugins/jpeg.c index 8b90c21..f96c954 100644 --- a/apps/plugins/jpeg.c +++ b/apps/plugins/jpeg.c @@ -2915,7 +2915,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) (actually it should also set the timeout when plugged in, but the function backlight_set_timeout_plugged is not available in plugins) */ -#ifdef CONFIG_BACKLIGHT +#if CONFIG_BACKLIGHT if (rb->global_settings->backlight_timeout > 0) rb->backlight_set_timeout(1); #endif @@ -2931,7 +2931,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) rb->ata_spindown(rb->global_settings->disk_spindown); #endif -#ifdef CONFIG_BACKLIGHT +#if CONFIG_BACKLIGHT /* reset backlight settings */ rb->backlight_set_timeout(rb->global_settings->backlight_timeout); #endif diff --git a/apps/plugins/mpegplayer/mpegplayer.c b/apps/plugins/mpegplayer/mpegplayer.c index 25a5d1a..36f54dc 100644 --- a/apps/plugins/mpegplayer/mpegplayer.c +++ b/apps/plugins/mpegplayer/mpegplayer.c @@ -883,7 +883,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) (actually it should also set the timeout when plugged in, but the function backlight_set_timeout_plugged is not available in plugins) */ -#ifdef CONFIG_BACKLIGHT +#if CONFIG_BACKLIGHT if (rb->global_settings->backlight_timeout > 0) rb->backlight_set_timeout(1); #endif @@ -954,7 +954,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) rb->lcd_setfont(FONT_UI); -#ifdef CONFIG_BACKLIGHT +#if CONFIG_BACKLIGHT /* reset backlight settings */ rb->backlight_set_timeout(rb->global_settings->backlight_timeout); #endif diff --git a/apps/recorder/peakmeter.c b/apps/recorder/peakmeter.c index 69c5e95..0e729f6 100644 --- a/apps/recorder/peakmeter.c +++ b/apps/recorder/peakmeter.c @@ -34,7 +34,7 @@ #include "peakmeter.h" #include "audio.h" #include "screen_access.h" -#ifdef CONFIG_BACKLIGHT +#if CONFIG_BACKLIGHT #include "backlight.h" #endif #include "action.h" @@ -1009,7 +1009,7 @@ void peak_meter_draw(struct screen *display, struct meter_scales *scales, #ifdef HAVE_RECORDING -#ifdef CONFIG_BACKLIGHT +#if CONFIG_BACKLIGHT /* cliplight */ if ((pm_clip_left || pm_clip_right) && global_settings.cliplight && @@ -1033,7 +1033,7 @@ void peak_meter_draw(struct screen *display, struct meter_scales *scales, } #endif /* HAVE_REMOTE_LCD */ } -#endif /*CONFIG_BACKLIGHT */ +#endif /* CONFIG_BACKLIGHT */ if (trig_status != TRIG_OFF) { int start_trigx, stop_trigx, ycenter; diff --git a/apps/settings.c b/apps/settings.c index 8c51181..2001c35 100644 --- a/apps/settings.c +++ b/apps/settings.c @@ -706,7 +706,7 @@ void settings_apply(void) remote_backlight_set_on_button_hold(global_settings.remote_backlight_on_button_hold); #endif #endif /* HAVE_REMOTE_LCD */ -#ifdef CONFIG_BACKLIGHT +#if CONFIG_BACKLIGHT backlight_set_timeout(global_settings.backlight_timeout); #if CONFIG_CHARGING backlight_set_timeout_plugged(global_settings.backlight_timeout_plugged); @@ -848,7 +848,7 @@ void settings_apply(void) spdif_power_enable(global_settings.spdif_enable); #endif -#ifdef CONFIG_BACKLIGHT +#if CONFIG_BACKLIGHT set_backlight_filter_keypress(global_settings.bl_filter_first_keypress); #ifdef HAVE_REMOTE_LCD set_remote_backlight_filter_keypress(global_settings.remote_bl_filter_first_keypress); diff --git a/apps/settings.h b/apps/settings.h index 52a45c1..f306f4b 100644 --- a/apps/settings.h +++ b/apps/settings.h @@ -609,7 +609,7 @@ struct user_settings #endif bool party_mode; /* party mode - unstoppable music */ -#ifdef CONFIG_BACKLIGHT +#if CONFIG_BACKLIGHT bool bl_filter_first_keypress; /* filter first keypress when dark? */ #ifdef HAVE_REMOTE_LCD bool remote_bl_filter_first_keypress; /* filter first remote keypress when remote dark? */ diff --git a/apps/settings_list.c b/apps/settings_list.c index 5914577..9f24c63 100644 --- a/apps/settings_list.c +++ b/apps/settings_list.c @@ -87,7 +87,7 @@ static const char trig_durations_conf [] = #endif /* HAVE_RECORDING */ -#if defined(CONFIG_BACKLIGHT) +#if CONFIG_BACKLIGHT static const char backlight_times_conf [] = "off,on,1,2,3,4,5,6,7,8,9,10,15,20,25,30,45,60,90"; static const int backlight_times[] = @@ -410,7 +410,7 @@ const struct settings_list settings[] = { { lcd_set_contrast, UNIT_INT, MIN_CONTRAST_SETTING, MAX_CONTRAST_SETTING, 1, NULL, NULL}}}}, #endif -#ifdef CONFIG_BACKLIGHT +#if CONFIG_BACKLIGHT INT_SETTING_W_CFGVALS(0, backlight_timeout, LANG_BACKLIGHT, 6, "backlight timeout", backlight_times_conf, UNIT_SEC, 0, 18, 1, backlight_formatter, backlight_getlang, @@ -516,7 +516,7 @@ const struct settings_list settings[] = { #endif #endif -#ifdef CONFIG_BACKLIGHT +#if CONFIG_BACKLIGHT OFFON_SETTING(0,bl_filter_first_keypress, LANG_BACKLIGHT_FILTER_FIRST_KEYPRESS, false, "backlight filters first keypress", NULL), @@ -529,7 +529,7 @@ const struct settings_list settings[] = { /** End of old RTC config block **/ -#ifdef CONFIG_BACKLIGHT +#if CONFIG_BACKLIGHT OFFON_SETTING(0,caption_backlight, LANG_CAPTION_BACKLIGHT, false,"caption backlight",NULL), #ifdef HAVE_REMOTE_LCD @@ -748,7 +748,7 @@ const struct settings_list settings[] = { INT(0),"prerecording time",NULL,UNUSED}, {F_T_INT,&global_settings.rec_directory,LANG_RECORD_DIRECTORY, INT(0),"rec directory",REC_BASE_DIR ",current",UNUSED}, -#ifdef CONFIG_BACKLIGHT +#if CONFIG_BACKLIGHT {F_T_INT,&global_settings.cliplight,LANG_CLIP_LIGHT,INT(0), "cliplight","off,main,both,remote",UNUSED}, #endif @@ -926,7 +926,7 @@ const struct settings_list settings[] = { LANG_WARN_ERASEDYNPLAYLIST_MENU,false, "warn when erasing dynamic playlist",NULL), -#ifdef CONFIG_BACKLIGHT +#if CONFIG_BACKLIGHT #ifdef HAS_BUTTON_HOLD CHOICE_SETTING(0, backlight_on_button_hold, LANG_BACKLIGHT_ON_BUTTON_HOLD, 0, "backlight on button hold", diff --git a/apps/sound_menu.c b/apps/sound_menu.c index c75b527..74618b1 100644 --- a/apps/sound_menu.c +++ b/apps/sound_menu.c @@ -430,7 +430,7 @@ static bool reconstartup(void) &global_settings.rec_startup); } -#ifdef CONFIG_BACKLIGHT +#if CONFIG_BACKLIGHT static bool cliplight(void) { static const struct opt_items names[] = { @@ -941,7 +941,7 @@ bool recording_menu(bool no_source) { ID2P(LANG_RECORD_PRERECORD_TIME), recprerecord }, { ID2P(LANG_RECORD_DIRECTORY), recdirectory }, { ID2P(LANG_RECORD_STARTUP), reconstartup }, -#ifdef CONFIG_BACKLIGHT +#if CONFIG_BACKLIGHT { ID2P(LANG_CLIP_LIGHT), cliplight }, #endif { ID2P(LANG_RECORD_TRIGGER), rectrigger }, |