diff options
author | Solomon Peachy <pizza@shaftnet.org> | 2020-07-24 19:20:15 -0400 |
---|---|---|
committer | Solomon Peachy <pizza@shaftnet.org> | 2020-07-24 19:20:15 -0400 |
commit | 9be5bc4cf0d185f4515174b9ebbb105f73f7c2e3 (patch) | |
tree | 46b4a9f4650d288bcbe67e92a9138b45c06105fa /apps/plugins/speedread.c | |
parent | 2127906384d618e032692becba10aeda1b3e1974 (diff) | |
download | rockbox-9be5bc4cf0d185f4515174b9ebbb105f73f7c2e3.tar.gz rockbox-9be5bc4cf0d185f4515174b9ebbb105f73f7c2e3.zip |
plugins: More HAVE_BACKLIGHT cleanup
Change-Id: I70cf700f5bc3d4375c025efa62ef40fd2bd70293
Diffstat (limited to 'apps/plugins/speedread.c')
-rw-r--r-- | apps/plugins/speedread.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/plugins/speedread.c b/apps/plugins/speedread.c index b6fce77de1..42634fb536 100644 --- a/apps/plugins/speedread.c +++ b/apps/plugins/speedread.c | |||
@@ -141,7 +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 | backlight_use_settings(); | 145 | backlight_use_settings(); |
146 | #endif | ||
145 | } | 147 | } |
146 | 148 | ||
147 | /* returns height of drawn area */ | 149 | /* returns height of drawn area */ |
@@ -300,7 +302,9 @@ static void begin_anim(void) | |||
300 | 302 | ||
301 | static void init_drawing(void) | 303 | static void init_drawing(void) |
302 | { | 304 | { |
305 | #ifdef HAVE_BACKLIGHT | ||
303 | backlight_ignore_timeout(); | 306 | backlight_ignore_timeout(); |
307 | #endif | ||
304 | atexit(cleanup); | 308 | atexit(cleanup); |
305 | 309 | ||
306 | rb->lcd_set_background(OUTSIDE_COLOR); | 310 | rb->lcd_set_background(OUTSIDE_COLOR); |