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/2048.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/2048.c')
-rw-r--r-- | apps/plugins/2048.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/plugins/2048.c b/apps/plugins/2048.c index 08be294d88..1604b73c62 100644 --- a/apps/plugins/2048.c +++ b/apps/plugins/2048.c | |||
@@ -148,7 +148,9 @@ static inline int rand_range(int min, int max) | |||
148 | /* prepares for exit */ | 148 | /* prepares for exit */ |
149 | static void cleanup(void) | 149 | static void cleanup(void) |
150 | { | 150 | { |
151 | #ifdef HAVE_BACKLIGHT | ||
151 | backlight_use_settings(); | 152 | backlight_use_settings(); |
153 | #endif | ||
152 | } | 154 | } |
153 | 155 | ||
154 | /* returns 2 or 4 */ | 156 | /* returns 2 or 4 */ |
@@ -698,7 +700,9 @@ static void init_game(bool newgame) | |||
698 | max_numeral_width = rb->font_get_width(rb->font_get(WHAT_FONT), '0'); | 700 | max_numeral_width = rb->font_get_width(rb->font_get(WHAT_FONT), '0'); |
699 | #endif | 701 | #endif |
700 | 702 | ||
703 | #ifdef HAVE_BACKLIGHT | ||
701 | backlight_ignore_timeout(); | 704 | backlight_ignore_timeout(); |
705 | #endif | ||
702 | draw(); | 706 | draw(); |
703 | } | 707 | } |
704 | 708 | ||