From f1034e00f6196c810466da66a9a24bf2e5f61272 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Sun, 5 Jul 2009 18:07:58 +0000 Subject: FS#10406 - split the statusbar setting into one for each display, and allow the bar to be at the top or bottom of the display git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21665 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/gwps.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'apps/gui/gwps.c') diff --git a/apps/gui/gwps.c b/apps/gui/gwps.c index 0b41f88cdc..64b8939ee9 100644 --- a/apps/gui/gwps.c +++ b/apps/gui/gwps.c @@ -937,7 +937,14 @@ static void statusbar_toggle_handler(void *data) } else { - vp->y = STATUSBAR_HEIGHT; + 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; + vp->y = bar_at_top?STATUSBAR_HEIGHT:0; vp->height = screens[i].lcdheight - STATUSBAR_HEIGHT; } } -- cgit v1.2.3