diff options
author | William Wilgus <wilgus.william@gmail.com> | 2022-11-23 23:00:29 -0500 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2022-11-23 23:00:29 -0500 |
commit | 97a82ee3eca1be69bd2d08e8fd9db09c0807ae5d (patch) | |
tree | b032a1397fd33240d8fdc7d6e17059723d0ffe55 /apps/plugins/mpegplayer | |
parent | 3745c813f924b12232c4f37610aecd23fe5654b8 (diff) | |
download | rockbox-97a82ee3eca1be69bd2d08e8fd9db09c0807ae5d.tar.gz rockbox-97a82ee3eca1be69bd2d08e8fd9db09c0807ae5d.zip |
plugins HAVE_BACKLIGHT helper remove ifdefs in favor of dummy functions
lessen the ifdef hell
Change-Id: I52f830284e4599f3fc3a75c27dda27058b8de1a3
Diffstat (limited to 'apps/plugins/mpegplayer')
-rw-r--r-- | apps/plugins/mpegplayer/mpegplayer.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/plugins/mpegplayer/mpegplayer.c b/apps/plugins/mpegplayer/mpegplayer.c index e66b4df146..654a348959 100644 --- a/apps/plugins/mpegplayer/mpegplayer.c +++ b/apps/plugins/mpegplayer/mpegplayer.c | |||
@@ -1215,10 +1215,9 @@ static void osd_lcd_enable_hook(unsigned short id, void* param) | |||
1215 | static void osdbacklight_hw_on_video_mode(bool video_on) | 1215 | static void osdbacklight_hw_on_video_mode(bool video_on) |
1216 | { | 1216 | { |
1217 | if (video_on) { | 1217 | if (video_on) { |
1218 | #ifdef HAVE_BACKLIGHT | ||
1219 | /* Turn off backlight timeout */ | 1218 | /* Turn off backlight timeout */ |
1220 | backlight_ignore_timeout(); | 1219 | backlight_ignore_timeout(); |
1221 | #endif | 1220 | |
1222 | #if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP) | 1221 | #if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP) |
1223 | rb->remove_event(LCD_EVENT_ACTIVATION, osd_lcd_enable_hook); | 1222 | rb->remove_event(LCD_EVENT_ACTIVATION, osd_lcd_enable_hook); |
1224 | #endif | 1223 | #endif |
@@ -1226,10 +1225,8 @@ static void osdbacklight_hw_on_video_mode(bool video_on) | |||
1226 | #if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP) | 1225 | #if defined(HAVE_LCD_ENABLE) || defined(HAVE_LCD_SLEEP) |
1227 | rb->add_event(LCD_EVENT_ACTIVATION, osd_lcd_enable_hook); | 1226 | rb->add_event(LCD_EVENT_ACTIVATION, osd_lcd_enable_hook); |
1228 | #endif | 1227 | #endif |
1229 | #ifdef HAVE_BACKLIGHT | ||
1230 | /* Revert to user's backlight settings */ | 1228 | /* Revert to user's backlight settings */ |
1231 | backlight_use_settings(); | 1229 | backlight_use_settings(); |
1232 | #endif | ||
1233 | } | 1230 | } |
1234 | } | 1231 | } |
1235 | 1232 | ||