From ee8c479dff7f4eb208901dc1da38a79cbd588414 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Sun, 1 Feb 2009 13:08:31 +0000 Subject: this commit actually makes my previous one work when the statusbar setting is enabled but the bar has been forcibly removed from the screen git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19896 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 3854430521..3f3729116b 100644 --- a/apps/gui/viewport.c +++ b/apps/gui/viewport.c @@ -59,7 +59,7 @@ void viewport_set_defaults(struct viewport *vp, enum screen_type screen) vp->x = 0; vp->width = screens[screen].lcdwidth; - vp->y = showing_bars(screen)?gui_statusbar_height():0; + vp->y = showing_bars(screen)?STATUSBAR_HEIGHT:0; vp->height = screens[screen].lcdheight - vp->y; #ifdef HAVE_LCD_BITMAP vp->drawmode = DRMODE_SOLID; -- cgit v1.2.3