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
|
|
@ -148,7 +148,9 @@ static inline int rand_range(int min, int max)
|
|||
/* prepares for exit */
|
||||
static void cleanup(void)
|
||||
{
|
||||
#ifdef HAVE_BACKLIGHT
|
||||
backlight_use_settings();
|
||||
#endif
|
||||
}
|
||||
|
||||
/* returns 2 or 4 */
|
||||
|
|
@ -698,7 +700,9 @@ static void init_game(bool newgame)
|
|||
max_numeral_width = rb->font_get_width(rb->font_get(WHAT_FONT), '0');
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_BACKLIGHT
|
||||
backlight_ignore_timeout();
|
||||
#endif
|
||||
draw();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue