From daa8341a13ddc93981d2c2178b183a13b5e08950 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Sun, 4 May 2008 10:58:05 +0000 Subject: 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 --- apps/gui/viewport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/gui/viewport.c') diff --git a/apps/gui/viewport.c b/apps/gui/viewport.c index 86ecd995ca..fbf520eed7 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->x = 0; vp->width = screens[screen].width; - vp->y = global_settings.statusbar?STATUSBAR_HEIGHT:0; + vp->y = gui_statusbar_height(); vp->height = screens[screen].height - vp->y; #ifdef HAVE_LCD_BITMAP vp->drawmode = DRMODE_SOLID; -- cgit v1.2.3