summaryrefslogtreecommitdiff
path: root/apps/gui/gwps.c
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2009-07-08 00:51:03 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2009-07-08 00:51:03 +0000
commita06f6eedae542afc48cf0aa5e30b4647e18547a2 (patch)
tree1b14ae67f85e37e9ed4186094c2cf5de8c8b453b /apps/gui/gwps.c
parent008f611bca3173e21027a568540281c0d7d03ef2 (diff)
downloadrockbox-a06f6eedae542afc48cf0aa5e30b4647e18547a2.tar.gz
rockbox-a06f6eedae542afc48cf0aa5e30b4647e18547a2.zip
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
Diffstat (limited to 'apps/gui/gwps.c')
-rw-r--r--apps/gui/gwps.c12
1 files changed, 3 insertions, 9 deletions
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)
245 bool draw = false; 245 bool draw = false;
246 if (gui_wps[i].data->wps_sb_tag) 246 if (gui_wps[i].data->wps_sb_tag)
247 draw = gui_wps[i].data->show_sb_on_wps; 247 draw = gui_wps[i].data->show_sb_on_wps;
248 else if (global_settings.statusbar) 248 else if (statusbar_position(i) != STATUSBAR_OFF)
249 wpsbars |= VP_SB_ONSCREEN(i); 249 draw = true;
250 if (draw) 250 if (draw)
251 wpsbars |= (VP_SB_ONSCREEN(i) | VP_SB_IGNORE_SETTING(i)); 251 wpsbars |= (VP_SB_ONSCREEN(i) | VP_SB_IGNORE_SETTING(i));
252 } 252 }
@@ -937,13 +937,7 @@ static void statusbar_toggle_handler(void *data)
937 } 937 }
938 else 938 else
939 { 939 {
940 bool bar_at_top = true; 940 bool bar_at_top = statusbar_position(i) != STATUSBAR_BOTTOM;
941#ifdef HAVE_REMOTE_LCD
942 if (i == SCREEN_REMOTE)
943 bar_at_top = global_settings.remote_statusbar != STATUSBAR_BOTTOM;
944 else
945#endif
946 bar_at_top = global_settings.statusbar != STATUSBAR_BOTTOM;
947 vp->y = bar_at_top?STATUSBAR_HEIGHT:0; 941 vp->y = bar_at_top?STATUSBAR_HEIGHT:0;
948 vp->height = screens[i].lcdheight - STATUSBAR_HEIGHT; 942 vp->height = screens[i].lcdheight - STATUSBAR_HEIGHT;
949 } 943 }