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/statusbar.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'apps/gui/statusbar.c') diff --git a/apps/gui/statusbar.c b/apps/gui/statusbar.c index 043fbd3e76..436e3d6cca 100644 --- a/apps/gui/statusbar.c +++ b/apps/gui/statusbar.c @@ -797,3 +797,9 @@ void gui_syncstatusbar_draw(struct gui_syncstatusbar * bars, gui_statusbar_draw( &(bars->statusbars[i]), force_redraw ); } } + +int gui_statusbar_height(void) +{ + return global_settings.statusbar ? STATUSBAR_HEIGHT : 0; +} + -- cgit v1.2.3