summaryrefslogtreecommitdiff
path: root/apps/plugins/mazezam.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/mazezam.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/mazezam.c')
-rw-r--r--apps/plugins/mazezam.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/plugins/mazezam.c b/apps/plugins/mazezam.c
index cd7b6e22a8..423b09288d 100644
--- a/apps/plugins/mazezam.c
+++ b/apps/plugins/mazezam.c
@@ -256,9 +256,7 @@ static void store_lcd_settings(void)
256******************************************************************************/ 256******************************************************************************/
257static void restore_lcd_settings(void) { 257static void restore_lcd_settings(void) {
258 /* Turn on backlight timeout (revert to settings) */ 258 /* Turn on backlight timeout (revert to settings) */
259#ifdef HAVE_BACKLIGHT
260 backlight_use_settings(); 259 backlight_use_settings();
261#endif
262 260
263 /* Restore the old settings */ 261 /* Restore the old settings */
264#if LCD_DEPTH > 1 262#if LCD_DEPTH > 1
@@ -272,10 +270,9 @@ static void restore_lcd_settings(void) {
272* Adjust the LCD settings to suit MazezaM levels 270* Adjust the LCD settings to suit MazezaM levels
273******************************************************************************/ 271******************************************************************************/
274static void plugin_lcd_settings(void) { 272static void plugin_lcd_settings(void) {
275#ifdef HAVE_BACKLIGHT
276 /* Turn off backlight timeout */ 273 /* Turn off backlight timeout */
277 backlight_ignore_timeout(); 274 backlight_ignore_timeout();
278#endif 275
279 /* Set the new settings */ 276 /* Set the new settings */
280#ifdef HAVE_LCD_COLOR 277#ifdef HAVE_LCD_COLOR
281 rb->lcd_set_background(MAZEZAM_BG_COLOR); 278 rb->lcd_set_background(MAZEZAM_BG_COLOR);