From 9be5bc4cf0d185f4515174b9ebbb105f73f7c2e3 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Fri, 24 Jul 2020 19:20:15 -0400 Subject: plugins: More HAVE_BACKLIGHT cleanup Change-Id: I70cf700f5bc3d4375c025efa62ef40fd2bd70293 --- apps/plugins/2048.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apps/plugins/2048.c') 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) /* prepares for exit */ static void cleanup(void) { +#ifdef HAVE_BACKLIGHT backlight_use_settings(); +#endif } /* returns 2 or 4 */ @@ -698,7 +700,9 @@ static void init_game(bool newgame) max_numeral_width = rb->font_get_width(rb->font_get(WHAT_FONT), '0'); #endif +#ifdef HAVE_BACKLIGHT backlight_ignore_timeout(); +#endif draw(); } -- cgit v1.2.3