forked from len0rd/rockbox
fix recorder, buttonbar caused list problems
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16584 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e96f19c690
commit
3f686d7034
2 changed files with 8 additions and 1 deletions
|
@ -197,6 +197,13 @@ void gui_synclist_draw(struct gui_synclist *gui_list)
|
|||
FOR_NB_SCREENS(i)
|
||||
{
|
||||
last_list_displayed = NULL;
|
||||
/* quick hack to fix the recorder overwriting the button bar..
|
||||
TODO: fix properly */
|
||||
gui_list->parent[i]->height = screens[i].height - gui_list->parent[i]->y
|
||||
#ifdef HAS_BUTTONBAR
|
||||
- (screens[i].has_buttonbar?BUTTONBAR_HEIGHT:0)
|
||||
#endif
|
||||
;
|
||||
list_draw(&screens[i], gui_list->parent[i], gui_list);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -50,7 +50,7 @@ void viewport_set_defaults(struct viewport *vp, enum screen_type screen)
|
|||
vp->y = global_settings.statusbar?STATUSBAR_HEIGHT:0;
|
||||
vp->height = screens[screen].height - vp->y
|
||||
#ifdef HAS_BUTTONBAR
|
||||
- screens[screen].has_buttonbar?BUTTONBAR_HEIGHT:0
|
||||
- (screens[screen].has_buttonbar?BUTTONBAR_HEIGHT:0)
|
||||
#endif
|
||||
;
|
||||
#ifdef HAVE_LCD_BITMAP
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue