summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/wps.c18
1 files changed, 1 insertions, 17 deletions
diff --git a/apps/wps.c b/apps/wps.c
index 2bf74ad1f9..9840b50566 100644
--- a/apps/wps.c
+++ b/apps/wps.c
@@ -124,9 +124,6 @@ int wps_show(void)
124{ 124{
125 static bool playing = true; 125 static bool playing = true;
126 struct mp3entry* id3 = mpeg_current_track(); 126 struct mp3entry* id3 = mpeg_current_track();
127 unsigned int lastlength=0, lastsize=0, lastrate=0;
128 int lastartist=0, lastalbum=0, lasttitle=0;
129 bool lastvbr = false;
130 bool keys_locked = false; 127 bool keys_locked = false;
131 bool dont_go_to_menu = false; 128 bool dont_go_to_menu = false;
132 129
@@ -136,23 +133,10 @@ int wps_show(void)
136 int i; 133 int i;
137 char buffer[32]; 134 char buffer[32];
138 135
139 if ( ( id3->length != lastlength ) || 136 if(mpeg_has_changed_track())
140 ( id3->filesize != lastsize ) ||
141 ( id3->bitrate != lastrate ) ||
142 ( id3->vbr != lastvbr ) ||
143 ( (id3->artist?id3->artist[0]:0) != lastartist ) ||
144 ( (id3->album?id3->album[0]:0) != lastalbum ) ||
145 ( (id3->title?id3->title[0]:0) != lasttitle ) )
146 { 137 {
147 lcd_stop_scroll(); 138 lcd_stop_scroll();
148 draw_screen(id3); 139 draw_screen(id3);
149 lastlength = id3->length;
150 lastsize = id3->filesize;
151 lastrate = id3->bitrate;
152 lastvbr = id3->vbr;
153 lastartist = id3->artist?id3->artist[0]:0;
154 lastalbum = id3->album?id3->album[0]:0;
155 lasttitle = id3->title?id3->title[0]:0;
156 } 140 }
157 141
158 if (playing) 142 if (playing)