summaryrefslogtreecommitdiff
path: root/apps/plugins/2048.c
diff options
context:
space:
mode:
authorWilliam Wilgus <wilgus.william@gmail.com>2022-11-23 23:00:29 -0500
committerWilliam Wilgus <wilgus.william@gmail.com>2022-11-23 23:00:29 -0500
commit97a82ee3eca1be69bd2d08e8fd9db09c0807ae5d (patch)
treeb032a1397fd33240d8fdc7d6e17059723d0ffe55 /apps/plugins/2048.c
parent3745c813f924b12232c4f37610aecd23fe5654b8 (diff)
downloadrockbox-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/2048.c')
-rw-r--r--apps/plugins/2048.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/plugins/2048.c b/apps/plugins/2048.c
index 2633753071..456f973aef 100644
--- a/apps/plugins/2048.c
+++ b/apps/plugins/2048.c
@@ -148,9 +148,7 @@ static inline int rand_range(int min, int max)
148/* prepares for exit */ 148/* prepares for exit */
149static void cleanup(void) 149static void cleanup(void)
150{ 150{
151#ifdef HAVE_BACKLIGHT
152 backlight_use_settings(); 151 backlight_use_settings();
153#endif
154} 152}
155 153
156/* returns 2 or 4 */ 154/* returns 2 or 4 */
@@ -700,9 +698,8 @@ static void init_game(bool newgame)
700 max_numeral_width = rb->font_get_width(rb->font_get(WHAT_FONT), '0'); 698 max_numeral_width = rb->font_get_width(rb->font_get(WHAT_FONT), '0');
701#endif 699#endif
702 700
703#ifdef HAVE_BACKLIGHT
704 backlight_ignore_timeout(); 701 backlight_ignore_timeout();
705#endif 702
706 draw(); 703 draw();
707} 704}
708 705