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/test_gfx.c | |
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/test_gfx.c')
-rw-r--r-- | apps/plugins/test_gfx.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/plugins/test_gfx.c b/apps/plugins/test_gfx.c index 7734179159..60e2836463 100644 --- a/apps/plugins/test_gfx.c +++ b/apps/plugins/test_gfx.c | |||
@@ -495,9 +495,9 @@ enum plugin_status plugin_start(const void* parameter) | |||
495 | rb->lcd_set_backdrop(NULL); | 495 | rb->lcd_set_backdrop(NULL); |
496 | rb->lcd_clear_display(); | 496 | rb->lcd_clear_display(); |
497 | #endif | 497 | #endif |
498 | #ifdef HAVE_BACKLIGHT | 498 | |
499 | backlight_ignore_timeout(); | 499 | backlight_ignore_timeout(); |
500 | #endif | 500 | |
501 | rb->splashf(0, "LCD driver performance test, please wait %d sec", | 501 | rb->splashf(0, "LCD driver performance test, please wait %d sec", |
502 | 7*4*DURATION/HZ); | 502 | 7*4*DURATION/HZ); |
503 | init_rand_table(); | 503 | init_rand_table(); |
@@ -522,9 +522,9 @@ enum plugin_status plugin_start(const void* parameter) | |||
522 | (cpu_freq + 500000) / 1000000); | 522 | (cpu_freq + 500000) / 1000000); |
523 | #endif | 523 | #endif |
524 | rb->close(log_fd); | 524 | rb->close(log_fd); |
525 | #ifdef HAVE_BACKLIGHT | 525 | |
526 | backlight_use_settings(); | 526 | backlight_use_settings(); |
527 | #endif | 527 | |
528 | #ifdef TEST_GREYLIB | 528 | #ifdef TEST_GREYLIB |
529 | grey_release(); | 529 | grey_release(); |
530 | #endif | 530 | #endif |