summaryrefslogtreecommitdiffstats
path: root/apps/screen_access.c
diff options
context:
space:
mode:
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);