forked from len0rd/rockbox
Partial menus support on remote (only browsing is working, changing option isn't), corrected a bug in gui_list about scrollbar beeing displayed sometimes when it musn't
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7693 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
fca6b63ef7
commit
db8415c99e
11 changed files with 317 additions and 476 deletions
|
|
@ -141,10 +141,12 @@ void screen_init(struct screen * screen, enum screen_type screen_type)
|
|||
screen->setfont(FONT_UI);
|
||||
#endif
|
||||
screen->screen_type=screen_type;
|
||||
#ifdef HAS_BUTTONBAR
|
||||
screen->has_buttonbar=false;
|
||||
#endif
|
||||
screen_update_nblines(screen);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Returns the number of text lines that can be drawn on the given screen
|
||||
* with it's current font
|
||||
|
|
@ -156,7 +158,7 @@ void screen_update_nblines(struct screen * screen)
|
|||
if(global_settings.statusbar)
|
||||
height -= STATUSBAR_HEIGHT;
|
||||
#ifdef HAS_BUTTONBAR
|
||||
if(global_settings.buttonbar)
|
||||
if(global_settings.buttonbar && screen->has_buttonbar)
|
||||
height -= BUTTONBAR_HEIGHT;
|
||||
#endif
|
||||
screen->getstringsize("A", &screen->char_width, &screen->char_height);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue