forked from len0rd/rockbox
Decouple the statusbar drawing from the rest of the screen drawing. it is not drawn roughly 4x per second automatically.
viewport_Set_defaults() will setup the given viewport with the correct "full screen" dimensions (so start at 0,0 if statusbars are disabled or 0,8 if they are enabled.) All screens should keep the statusbar enabled, but if you really want to ignore the user setting you can disbaled it with viewportmanager_set_statusbar(false). This commit also includes some menu/list viewport cleanups from kugel in FS#9603 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19622 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
54919ae917
commit
e385ee18ce
46 changed files with 294 additions and 264 deletions
|
@ -98,7 +98,6 @@ int menu_show(int m)
|
|||
int key;
|
||||
|
||||
rb->gui_synclist_draw(&(menus[m].synclist));
|
||||
rb->gui_syncstatusbar_draw(rb->statusbars, true);
|
||||
while (!exit) {
|
||||
key = rb->get_action(CONTEXT_MAINMENU,HZ/2);
|
||||
/*
|
||||
|
@ -126,7 +125,6 @@ int menu_show(int m)
|
|||
return MENU_ATTACHED_USB;
|
||||
break;
|
||||
}
|
||||
rb->gui_syncstatusbar_draw(rb->statusbars, false);
|
||||
}
|
||||
return MENU_SELECTED_EXIT;
|
||||
}
|
||||
|
@ -149,7 +147,6 @@ bool menu_run(int m)
|
|||
if (menus[m].items[selected].function &&
|
||||
menus[m].items[selected].function())
|
||||
return true;
|
||||
rb->gui_syncstatusbar_draw(rb->statusbars, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue