summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/gui/list.c7
-rw-r--r--apps/gui/viewport.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c
index 9aafece..9de705d 100644
--- a/apps/gui/list.c
+++ b/apps/gui/list.c
@@ -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);
}
}
diff --git a/apps/gui/viewport.c b/apps/gui/viewport.c
index c59a1d9..ca7e574 100644
--- a/apps/gui/viewport.c
+++ b/apps/gui/viewport.c
@@ -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