summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2006-03-11 22:06:43 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2006-03-11 22:06:43 +0000
commit1a66809ce11ba3056853bb98f39edc260e6b6db5 (patch)
tree3a9086210f31735e475a17910cfb2aebd47d2c3f
parent21229b2f093e27123463403f5bd535fba8b392da (diff)
downloadrockbox-1a66809ce11ba3056853bb98f39edc260e6b6db5.tar.gz
rockbox-1a66809ce11ba3056853bb98f39edc260e6b6db5.tar.bz2
rockbox-1a66809ce11ba3056853bb98f39edc260e6b6db5.zip
Patch #4739 by Matthias Mohr - Clear WPS backdrop when loading new WPS
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9007 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/gui/gwps.c46
-rw-r--r--docs/CREDITS1
2 files changed, 23 insertions, 24 deletions
diff --git a/apps/gui/gwps.c b/apps/gui/gwps.c
index ee4522966c..6134cb5068 100644
--- a/apps/gui/gwps.c
+++ b/apps/gui/gwps.c
@@ -802,29 +802,6 @@ long gui_wps_show(void)
/* needs checking if needed end*/
/* wps_data*/
-/* initial setup of wps_data */
-void wps_data_init(struct wps_data *wps_data)
-{
- int i;
-#ifdef HAVE_LCD_BITMAP
- for (i = 0; i < MAX_IMAGES; i++) {
- wps_data->img[i].loaded = false;
- wps_data->img[i].display = false;
- wps_data->img[i].always_display = false;
- }
- wps_data->wps_sb_tag = false;
- wps_data->show_sb_on_wps = false;
- wps_data->progressbar.have_bitmap_pb=false;
-#else /* HAVE_LCD_CHARCELLS */
- for(i = 0; i < 8; i++)
- wps_data->wps_progress_pat[i] = 0;
- wps_data->full_line_progressbar = 0;
-#endif
- wps_data->format_buffer[0] = '\0';
- wps_data->wps_loaded = false;
- wps_data->peak_meter_enabled = false;
-}
-
#ifdef HAVE_LCD_BITMAP
/* Clear the WPS image cache */
static void wps_clear(struct wps_data *data )
@@ -844,11 +821,32 @@ static void wps_clear(struct wps_data *data )
#define wps_clear(a)
#endif
+/* initial setup of wps_data */
+void wps_data_init(struct wps_data *wps_data)
+{
+#ifdef HAVE_LCD_BITMAP
+ wps_clear(wps_data);
+#else /* HAVE_LCD_CHARCELLS */
+ {
+ int i;
+ for(i = 0; i < 8; i++)
+ wps_data->wps_progress_pat[i] = 0;
+ wps_data->full_line_progressbar = 0;
+ }
+#endif
+ wps_data->format_buffer[0] = '\0';
+ wps_data->wps_loaded = false;
+ wps_data->peak_meter_enabled = false;
+}
+
static void wps_reset(struct wps_data *data)
{
data->wps_loaded = false;
memset(&data->format_buffer, 0, sizeof data->format_buffer);
- wps_clear(data);
+ wps_data_init(data);
+#ifdef HAVE_LCD_COLOR
+ wps_has_backdrop = false;
+#endif
}
/* to setup up the wps-data from a format-buffer (isfile = false)
diff --git a/docs/CREDITS b/docs/CREDITS
index ccc174ba3d..8408491a8d 100644
--- a/docs/CREDITS
+++ b/docs/CREDITS
@@ -180,3 +180,4 @@ Alun Thomas
Nils Wallménius
Naoaki Okazaki
Will Dyson
+Matthias Mohr