summaryrefslogtreecommitdiff
path: root/apps/gui/list.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2008-05-04 10:58:05 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2008-05-04 10:58:05 +0000
commitdaa8341a13ddc93981d2c2178b183a13b5e08950 (patch)
tree3a4946cb4b66d0e475aa04bdd8fafc5bd4a5b3e5 /apps/gui/list.c
parent977ad4b5a185cede164cfab9b52ba808bd7ed560 (diff)
downloadrockbox-daa8341a13ddc93981d2c2178b183a13b5e08950.tar.gz
rockbox-daa8341a13ddc93981d2c2178b183a13b5e08950.zip
a bit of code cleanup.. use a single function to get the statusbar height (or lack of if its enabled), and remove some gui_textarea stuff which could be done using the splash. (gui_textarea is on the way out)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17350 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui/list.c')
-rw-r--r--apps/gui/list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/gui/list.c b/apps/gui/list.c
index 6b4229545d..1e2b682e6e 100644
--- a/apps/gui/list.c
+++ b/apps/gui/list.c
@@ -76,7 +76,7 @@ void list_init_viewports(struct gui_synclist *list)
76 else if (list->parent[i] == vp) 76 else if (list->parent[i] == vp)
77 { 77 {
78 viewport_set_defaults(vp, i); 78 viewport_set_defaults(vp, i);
79 list->parent[i]->y = global_settings.statusbar?STATUSBAR_HEIGHT:0; 79 list->parent[i]->y = gui_statusbar_height();
80 list->parent[i]->height = screens[i].height - list->parent[i]->y; 80 list->parent[i]->height = screens[i].height - list->parent[i]->y;
81 } 81 }
82 } 82 }