summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerome Kuptz <jeromekuptz@gmail.com>2002-06-27 10:03:02 +0000
committerJerome Kuptz <jeromekuptz@gmail.com>2002-06-27 10:03:02 +0000
commite606fae6a916f0ef5f38d85c800d13c353511f91 (patch)
treea325cd4a778531b4ea63107f41d9b8cfdb79d6ba
parent793b8a45762eb24d87bedd852d5edea60b47700c (diff)
downloadrockbox-e606fae6a916f0ef5f38d85c800d13c353511f91.tar.gz
rockbox-e606fae6a916f0ef5f38d85c800d13c353511f91.zip
removes the .mp3 text from the scrolling line for WPS Parse Mode
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1232 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/wps.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/apps/wps.c b/apps/wps.c
index 838f8f786a..aabccd6a9c 100644
--- a/apps/wps.c
+++ b/apps/wps.c
@@ -48,6 +48,7 @@ static void draw_screen(struct mp3entry* id3)
48 char* end; 48 char* end;
49 char* szTok; 49 char* szTok;
50 char* szDelimit; 50 char* szDelimit;
51 char* szPeriod;
51 char szArtist[26]; 52 char szArtist[26];
52 char szBuff[257]; 53 char szBuff[257];
53 szBuff[sizeof(szBuff)-1] = 0; 54 szBuff[sizeof(szBuff)-1] = 0;
@@ -62,6 +63,13 @@ static void draw_screen(struct mp3entry* id3)
62 szArtist[sizeof(szArtist)-1] = 0; 63 szArtist[sizeof(szArtist)-1] = 0;
63 szDelimit = strrchr(id3->path, ch); 64 szDelimit = strrchr(id3->path, ch);
64 lcd_puts(0,0, szArtist?szArtist:"<nothing>"); 65 lcd_puts(0,0, szArtist?szArtist:"<nothing>");
66
67 // removes the .mp3 from the end of the display buffer
68 szPeriod = strrchr(szDelimit, '.');
69 if (szPeriod != NULL) {
70 memset(szPeriod, 0, 3);
71 }
72
65 lcd_puts_scroll(0,LINE_Y,(++szDelimit)); 73 lcd_puts_scroll(0,LINE_Y,(++szDelimit));
66 break; 74 break;
67 } 75 }