summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2002-09-27 11:24:47 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2002-09-27 11:24:47 +0000
commit34a1efc4a1bdce3ffaf1349dec38856c4779d96f (patch)
treeb4aee0352b20d5cd6bf864f5f5050c77e1e4bc81 /apps
parentf7c3ffa53797eadb0264eb26efc41d58942379a3 (diff)
downloadrockbox-34a1efc4a1bdce3ffaf1349dec38856c4779d96f.tar.gz
rockbox-34a1efc4a1bdce3ffaf1349dec38856c4779d96f.zip
WPS loading only worked is WPS had been shown at least once before
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2439 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/wps-display.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/wps-display.c b/apps/wps-display.c
index c64a1aa7dd..ac423c740a 100644
--- a/apps/wps-display.c
+++ b/apps/wps-display.c
@@ -68,6 +68,7 @@ static char* format_lines[MAX_LINES];
static bool dynamic_lines[MAX_LINES];
static int ff_rewind_count;
bool wps_time_countup = true;
+static bool wps_loaded = false;
/* Set format string to use for WPS, splitting it into lines */
static void wps_format(char* fmt)
@@ -148,6 +149,7 @@ bool wps_load_custom(char* file)
sleep(HZ);
}
+ wps_loaded = true;
return numread > 0;
}
@@ -637,11 +639,8 @@ void wps_display(struct mp3entry* id3)
}
else
{
- static bool wps_loaded = false;
-
if (!wps_loaded) {
wps_load_custom(NULL);
- wps_loaded = true;
if ( !format_buffer[0] ) {
#ifdef HAVE_LCD_BITMAP