summaryrefslogtreecommitdiff
path: root/apps/plugins/imageviewer/imageviewer.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/imageviewer/imageviewer.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/imageviewer/imageviewer.c')
-rw-r--r--apps/plugins/imageviewer/imageviewer.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/apps/plugins/imageviewer/imageviewer.c b/apps/plugins/imageviewer/imageviewer.c
index e30a98ef68..a8ef3efc97 100644
--- a/apps/plugins/imageviewer/imageviewer.c
+++ b/apps/plugins/imageviewer/imageviewer.c
@@ -1064,10 +1064,8 @@ enum plugin_status plugin_start(const void* parameter)
1064 ARRAYLEN(config), IMGVIEW_SETTINGS_MINVERSION); 1064 ARRAYLEN(config), IMGVIEW_SETTINGS_MINVERSION);
1065 rb->memcpy(&old_settings, &settings, sizeof (settings)); 1065 rb->memcpy(&old_settings, &settings, sizeof (settings));
1066 1066
1067#ifdef HAVE_BACKLIGHT
1068 /* Turn off backlight timeout */ 1067 /* Turn off backlight timeout */
1069 backlight_ignore_timeout(); 1068 backlight_ignore_timeout();
1070#endif
1071 1069
1072#if LCD_DEPTH > 1 1070#if LCD_DEPTH > 1
1073 rb->lcd_set_backdrop(NULL); 1071 rb->lcd_set_backdrop(NULL);
@@ -1094,10 +1092,8 @@ enum plugin_status plugin_start(const void* parameter)
1094 rb->storage_spindown(rb->global_settings->disk_spindown); 1092 rb->storage_spindown(rb->global_settings->disk_spindown);
1095#endif 1093#endif
1096 1094
1097#ifdef HAVE_BACKLIGHT
1098 /* Turn on backlight timeout (revert to settings) */ 1095 /* Turn on backlight timeout (revert to settings) */
1099 backlight_use_settings(); 1096 backlight_use_settings();
1100#endif
1101 1097
1102#ifdef USEGSLIB 1098#ifdef USEGSLIB
1103 grey_release(); /* deinitialize */ 1099 grey_release(); /* deinitialize */