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/speedread.c | |
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/speedread.c')
-rw-r--r-- | apps/plugins/speedread.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/plugins/speedread.c b/apps/plugins/speedread.c index 42634fb536..55d8fd58e5 100644 --- a/apps/plugins/speedread.c +++ b/apps/plugins/speedread.c | |||
@@ -141,9 +141,9 @@ static void cleanup(void) | |||
141 | { | 141 | { |
142 | if(custom_font != FONT_UI) | 142 | if(custom_font != FONT_UI) |
143 | rb->font_unload(custom_font); | 143 | rb->font_unload(custom_font); |
144 | #ifdef HAVE_BACKLIGHT | 144 | |
145 | backlight_use_settings(); | 145 | backlight_use_settings(); |
146 | #endif | 146 | |
147 | } | 147 | } |
148 | 148 | ||
149 | /* returns height of drawn area */ | 149 | /* returns height of drawn area */ |
@@ -302,9 +302,8 @@ static void begin_anim(void) | |||
302 | 302 | ||
303 | static void init_drawing(void) | 303 | static void init_drawing(void) |
304 | { | 304 | { |
305 | #ifdef HAVE_BACKLIGHT | ||
306 | backlight_ignore_timeout(); | 305 | backlight_ignore_timeout(); |
307 | #endif | 306 | |
308 | atexit(cleanup); | 307 | atexit(cleanup); |
309 | 308 | ||
310 | rb->lcd_set_background(OUTSIDE_COLOR); | 309 | rb->lcd_set_background(OUTSIDE_COLOR); |