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:
parent
da88e84f48
commit
3a37f46fc9
18 changed files with 51 additions and 48 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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? */
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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 },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue