From a06f6eedae542afc48cf0aa5e30b4647e18547a2 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Wed, 8 Jul 2009 00:51:03 +0000 Subject: cleanup the remote+main statusbar handling a bit, and fix the bug where the remote wps might reserve the space for the statusbar even if its disabled git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21709 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/gwps.c | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'apps/gui/gwps.c') diff --git a/apps/gui/gwps.c b/apps/gui/gwps.c index 64b8939ee9..95cca5c117 100644 --- a/apps/gui/gwps.c +++ b/apps/gui/gwps.c @@ -245,8 +245,8 @@ static void gwps_fix_statusbars(void) bool draw = false; if (gui_wps[i].data->wps_sb_tag) draw = gui_wps[i].data->show_sb_on_wps; - else if (global_settings.statusbar) - wpsbars |= VP_SB_ONSCREEN(i); + else if (statusbar_position(i) != STATUSBAR_OFF) + draw = true; if (draw) wpsbars |= (VP_SB_ONSCREEN(i) | VP_SB_IGNORE_SETTING(i)); } @@ -937,13 +937,7 @@ static void statusbar_toggle_handler(void *data) } else { - bool bar_at_top = true; -#ifdef HAVE_REMOTE_LCD - if (i == SCREEN_REMOTE) - bar_at_top = global_settings.remote_statusbar != STATUSBAR_BOTTOM; - else -#endif - bar_at_top = global_settings.statusbar != STATUSBAR_BOTTOM; + bool bar_at_top = statusbar_position(i) != STATUSBAR_BOTTOM; vp->y = bar_at_top?STATUSBAR_HEIGHT:0; vp->height = screens[i].lcdheight - STATUSBAR_HEIGHT; } -- cgit v1.2.3