From 12b8f8de892920a99d9740f2e26fa7c4811de5b6 Mon Sep 17 00:00:00 2001 From: Jonathan Gordon Date: Sat, 10 Jan 2009 13:16:24 +0000 Subject: [PATCH] fix FS#9772 - the statusbars were not working correclty on multi screen targets in the WPS git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19742 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/gwps-common.c | 13 +++++++++++++ apps/gui/gwps.c | 1 + 2 files changed, 14 insertions(+) diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c index d50069eac1..61553146d4 100644 --- a/apps/gui/gwps-common.c +++ b/apps/gui/gwps-common.c @@ -85,7 +85,20 @@ static void gui_wps_statusbar_draw(struct gui_wps *wps, bool force) if (wps->data->wps_sb_tag) draw = wps->data->show_sb_on_wps; +#if NB_SCREENS > 1 + /* multi screen targets could show the bars on one screen but not both + * so the viewportmanager can't be used in its current form... + * Also, the WPS is a special screen so doing this is reasonable. + */ + if (draw) + { + struct gui_statusbar *bar; + bar = &statusbars.statusbars[wps->data->remote_wps?SCREEN_REMOTE:SCREEN_MAIN]; + gui_statusbar_draw(bar, force); + } +#else viewportmanager_set_statusbar(draw); +#endif } #else #define gui_wps_statusbar_draw(wps, force) diff --git a/apps/gui/gwps.c b/apps/gui/gwps.c index c84e7c63fe..dd8978c8bb 100644 --- a/apps/gui/gwps.c +++ b/apps/gui/gwps.c @@ -128,6 +128,7 @@ long gui_wps_show(void) int i; long last_left = 0, last_right = 0; + viewportmanager_set_statusbar(false); wps_state_init(); #ifdef HAVE_LCD_CHARCELLS