forked from len0rd/rockbox
plugins: More HAVE_BACKLIGHT cleanup
Change-Id: I70cf700f5bc3d4375c025efa62ef40fd2bd70293
This commit is contained in:
parent
2127906384
commit
9be5bc4cf0
30 changed files with 149 additions and 44 deletions
|
@ -1899,8 +1899,9 @@ enum plugin_status plugin_start(UNUSED const void* parameter)
|
|||
{
|
||||
rb->lcd_setfont(FONT_SYSFIXED);
|
||||
/* Turn off backlight timeout */
|
||||
#ifdef HAVE_BACKLIGHT
|
||||
backlight_ignore_timeout();
|
||||
|
||||
#endif
|
||||
/* now go ahead and have fun! */
|
||||
game_loop();
|
||||
|
||||
|
@ -1916,8 +1917,9 @@ enum plugin_status plugin_start(UNUSED const void* parameter)
|
|||
/* Restore user's original backlight setting */
|
||||
rb->lcd_setfont(FONT_UI);
|
||||
/* Turn on backlight timeout (revert to settings) */
|
||||
#ifdef HAVE_BACKLIGHT
|
||||
backlight_use_settings();
|
||||
|
||||
#endif
|
||||
return PLUGIN_OK;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue