summaryrefslogtreecommitdiff
path: root/apps/plugins/test_grey.c
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-07-24 19:42:32 -0400
committerSolomon Peachy <pizza@shaftnet.org>2020-07-24 19:42:32 -0400
commite49c1af5709bd24ea9c088c6d1676372bd7cc780 (patch)
treeccfb40404fad8503292e1baa4fdd9aef8d1d78eb /apps/plugins/test_grey.c
parent9be5bc4cf0d185f4515174b9ebbb105f73f7c2e3 (diff)
downloadrockbox-e49c1af5709bd24ea9c088c6d1676372bd7cc780.tar.gz
rockbox-e49c1af5709bd24ea9c088c6d1676372bd7cc780.zip
plugins: HAVE_BACKLIGHT in the test plugins
Change-Id: I97d17805ac7d37f10da6a29684102db97448e653
Diffstat (limited to 'apps/plugins/test_grey.c')
-rw-r--r--apps/plugins/test_grey.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/plugins/test_grey.c b/apps/plugins/test_grey.c
index c4179df135..121cbad051 100644
--- a/apps/plugins/test_grey.c
+++ b/apps/plugins/test_grey.c
@@ -123,9 +123,9 @@ enum plugin_status plugin_start(const void* parameter)
123 } 123 }
124 for (i = 0; i <= STEPS; i++) 124 for (i = 0; i <= STEPS; i++)
125 input_levels[i] = lcd_levels[i] = (255 * i + (STEPS/2)) / STEPS; 125 input_levels[i] = lcd_levels[i] = (255 * i + (STEPS/2)) / STEPS;
126 126#ifdef HAVE_BACKLIGHT
127 backlight_ignore_timeout(); 127 backlight_ignore_timeout();
128 128#endif
129 grey_set_background(0); /* set background to black */ 129 grey_set_background(0); /* set background to black */
130 grey_clear_display(); 130 grey_clear_display();
131 grey_show(true); 131 grey_show(true);
@@ -221,6 +221,8 @@ enum plugin_status plugin_start(const void* parameter)
221 } 221 }
222 222
223 grey_release(); 223 grey_release();
224#ifdef HAVE_BACKLIGHT
224 backlight_use_settings(); 225 backlight_use_settings();
226#endif
225 return PLUGIN_OK; 227 return PLUGIN_OK;
226} 228}