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
|
@ -141,7 +141,9 @@ static void cleanup(void)
|
|||
{
|
||||
if(custom_font != FONT_UI)
|
||||
rb->font_unload(custom_font);
|
||||
#ifdef HAVE_BACKLIGHT
|
||||
backlight_use_settings();
|
||||
#endif
|
||||
}
|
||||
|
||||
/* returns height of drawn area */
|
||||
|
@ -300,7 +302,9 @@ static void begin_anim(void)
|
|||
|
||||
static void init_drawing(void)
|
||||
{
|
||||
#ifdef HAVE_BACKLIGHT
|
||||
backlight_ignore_timeout();
|
||||
#endif
|
||||
atexit(cleanup);
|
||||
|
||||
rb->lcd_set_background(OUTSIDE_COLOR);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue