summaryrefslogtreecommitdiffstats
path: root/apps/screen_access.c
diff options
context:
space:
mode:
authorKevin Ferrare <kevin@rockbox.org>2005-10-30 22:34:51 +0000
committerKevin Ferrare <kevin@rockbox.org>2005-10-30 22:34:51 +0000
commitdb8415c99e37b1ee2b152625d36e84cb9bbf690d (patch)
treebd4ff98ebf76d79221d0f511daae879c66e78a28 /apps/screen_access.c
parentfca6b63ef7310a36010d843f295e37ec368febf8 (diff)
downloadrockbox-db8415c99e37b1ee2b152625d36e84cb9bbf690d.tar.gz
rockbox-db8415c99e37b1ee2b152625d36e84cb9bbf690d.tar.bz2
rockbox-db8415c99e37b1ee2b152625d36e84cb9bbf690d.zip
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
Diffstat (limited to 'apps/screen_access.c')
-rw-r--r--apps/screen_access.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/screen_access.c b/apps/screen_access.c
index 815bdcfe49..064464d59c 100644
--- a/apps/screen_access.c
+++ b/apps/screen_access.c
@@ -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);