summaryrefslogtreecommitdiff
path: root/apps/plugins/pong.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/pong.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/pong.c')
-rw-r--r--apps/plugins/pong.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/plugins/pong.c b/apps/plugins/pong.c
index b49fec2459..17e6e6ed73 100644
--- a/apps/plugins/pong.c
+++ b/apps/plugins/pong.c
@@ -750,10 +750,9 @@ enum plugin_status plugin_start(const void* parameter)
750 this to avoid the compiler warning about it */ 750 this to avoid the compiler warning about it */
751 (void)parameter; 751 (void)parameter;
752 752
753#ifdef HAVE_BACKLIGHT
754 /* Turn off backlight timeout */ 753 /* Turn off backlight timeout */
755 backlight_ignore_timeout(); 754 backlight_ignore_timeout();
756#endif 755
757 /* Clear screen */ 756 /* Clear screen */
758 rb->lcd_clear_display(); 757 rb->lcd_clear_display();
759 758
@@ -792,9 +791,9 @@ enum plugin_status plugin_start(const void* parameter)
792 rb->lcd_clear_display(); 791 rb->lcd_clear_display();
793 } 792 }
794 } 793 }
795#ifdef HAVE_BACKLIGHT 794
796 /* Turn on backlight timeout (revert to settings) */ 795 /* Turn on backlight timeout (revert to settings) */
797 backlight_use_settings(); 796 backlight_use_settings();
798#endif 797
799 return (game == 0) ? PLUGIN_OK : PLUGIN_USB_CONNECTED; 798 return (game == 0) ? PLUGIN_OK : PLUGIN_USB_CONNECTED;
800} 799}