forked from len0rd/rockbox
FS#10406 - split the statusbar setting into one for each display, and allow the bar to be at the top or bottom of the display
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21665 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
802743a061
commit
f1034e00f6
12 changed files with 128 additions and 23 deletions
|
|
@ -937,7 +937,14 @@ static void statusbar_toggle_handler(void *data)
|
|||
}
|
||||
else
|
||||
{
|
||||
vp->y = STATUSBAR_HEIGHT;
|
||||
bool bar_at_top = true;
|
||||
#ifdef HAVE_REMOTE_LCD
|
||||
if (i == SCREEN_REMOTE)
|
||||
bar_at_top = global_settings.remote_statusbar != STATUSBAR_BOTTOM;
|
||||
else
|
||||
#endif
|
||||
bar_at_top = global_settings.statusbar != STATUSBAR_BOTTOM;
|
||||
vp->y = bar_at_top?STATUSBAR_HEIGHT:0;
|
||||
vp->height = screens[i].lcdheight - STATUSBAR_HEIGHT;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue