From 3ab31337d8de1438d24934e25eb4ff5afa150cde Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Mon, 23 Mar 2009 03:18:34 +0000 Subject: Fix red, and use gui_wps_display() for restoration. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20485 a1c6a512-1295-4272-9138-f99709370657 --- apps/gui/gwps-common.c | 2 +- apps/gui/gwps.c | 9 +-------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/apps/gui/gwps-common.c b/apps/gui/gwps-common.c index 198d62d..a90b562 100644 --- a/apps/gui/gwps-common.c +++ b/apps/gui/gwps-common.c @@ -255,7 +255,7 @@ bool ffwd_rew(int button) #endif #ifdef HAVE_LCD_CHARCELLS FOR_NB_SCREENS(i) - gui_wps_redraw(gwps,0, WPS_REFRESH_ALL); + gui_wps_redraw(&gui_wps[i],0, WPS_REFRESH_ALL); #endif exit = true; break; diff --git a/apps/gui/gwps.c b/apps/gui/gwps.c index 9057d9e..1882deb 100644 --- a/apps/gui/gwps.c +++ b/apps/gui/gwps.c @@ -682,19 +682,12 @@ long gui_wps_show(void) ((restoretimer == RESTORE_WPS_INSTANTLY) || TIME_AFTER(current_tick, restoretimer))) { - /* restore wps backrops and statusbars */ -#if LCD_DEPTH > 1 - show_wps_backdrop(); -#endif -#if defined(HAVE_REMOTE_LCD) && LCD_REMOTE_DEPTH > 1 - show_remote_wps_backdrop(); -#endif restore = false; restoretimer = RESTORE_WPS_INSTANTLY; FOR_NB_SCREENS(i) { screens[i].stop_scroll(); - if (!gui_wps_redraw(&gui_wps[i], 0, WPS_REFRESH_ALL)) + if (!gui_wps_display(&gui_wps[i])) exit = true; } } -- cgit v1.1