diff options
author | William Wilgus <wilgus.william@gmail.com> | 2022-11-23 23:00:29 -0500 |
---|---|---|
committer | William Wilgus <wilgus.william@gmail.com> | 2022-11-23 23:00:29 -0500 |
commit | 97a82ee3eca1be69bd2d08e8fd9db09c0807ae5d (patch) | |
tree | b032a1397fd33240d8fdc7d6e17059723d0ffe55 /apps/plugins/fft | |
parent | 3745c813f924b12232c4f37610aecd23fe5654b8 (diff) | |
download | rockbox-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/fft')
-rw-r--r-- | apps/plugins/fft/fft.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/apps/plugins/fft/fft.c b/apps/plugins/fft/fft.c index 35498227bf..f612a0ea35 100644 --- a/apps/plugins/fft/fft.c +++ b/apps/plugins/fft/fft.c | |||
@@ -1184,9 +1184,8 @@ static void fft_cleanup(void) | |||
1184 | #ifndef HAVE_LCD_COLOR | 1184 | #ifndef HAVE_LCD_COLOR |
1185 | grey_release(); | 1185 | grey_release(); |
1186 | #endif | 1186 | #endif |
1187 | #ifdef HAVE_BACKLIGHT | 1187 | |
1188 | backlight_use_settings(); | 1188 | backlight_use_settings(); |
1189 | #endif | ||
1190 | 1189 | ||
1191 | /* save settings if changed */ | 1190 | /* save settings if changed */ |
1192 | if (rb->memcmp(&fft, &fft_disk, sizeof(fft))) | 1191 | if (rb->memcmp(&fft, &fft_disk, sizeof(fft))) |
@@ -1237,9 +1236,8 @@ static bool fft_setup(void) | |||
1237 | mylcd_clear_display(); | 1236 | mylcd_clear_display(); |
1238 | myosd_lcd_update(); | 1237 | myosd_lcd_update(); |
1239 | #endif | 1238 | #endif |
1240 | #ifdef HAVE_BACKLIGHT | 1239 | |
1241 | backlight_ignore_timeout(); | 1240 | backlight_ignore_timeout(); |
1242 | #endif | ||
1243 | 1241 | ||
1244 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ | 1242 | #ifdef HAVE_ADJUSTABLE_CPU_FREQ |
1245 | rb->trigger_cpu_boost(); | 1243 | rb->trigger_cpu_boost(); |