forked from len0rd/rockbox
Set lcd margins only if we return from main_menu().
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2089 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
b8660c4120
commit
51ca48ba0d
1 changed files with 6 additions and 6 deletions
12
apps/wps.c
12
apps/wps.c
|
@ -523,6 +523,12 @@ static bool menu(void)
|
|||
lcd_stop_scroll();
|
||||
button_set_release(old_release_mask);
|
||||
main_menu();
|
||||
#ifdef HAVE_LCD_BITMAP
|
||||
if(global_settings.statusbar)
|
||||
lcd_setmargins(0, STATUSBAR_HEIGHT);
|
||||
else
|
||||
lcd_setmargins(0, 0);
|
||||
#endif
|
||||
old_release_mask = button_set_release(RELEASE_MASK);
|
||||
}
|
||||
break;
|
||||
|
@ -752,12 +758,6 @@ int wps_show(void)
|
|||
#endif
|
||||
if (menu())
|
||||
return SYS_USB_CONNECTED;
|
||||
#ifdef HAVE_LCD_BITMAP
|
||||
if(global_settings.statusbar)
|
||||
lcd_setmargins(0, STATUSBAR_HEIGHT);
|
||||
else
|
||||
lcd_setmargins(0, 0);
|
||||
#endif
|
||||
restore = true;
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue