diff options
-rw-r--r-- | apps/wps.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/wps.c b/apps/wps.c index aabccd6a9c..5ea0c12e8e 100644 --- a/apps/wps.c +++ b/apps/wps.c | |||
@@ -66,9 +66,8 @@ static void draw_screen(struct mp3entry* id3) | |||
66 | 66 | ||
67 | // removes the .mp3 from the end of the display buffer | 67 | // removes the .mp3 from the end of the display buffer |
68 | szPeriod = strrchr(szDelimit, '.'); | 68 | szPeriod = strrchr(szDelimit, '.'); |
69 | if (szPeriod != NULL) { | 69 | if (szPeriod != NULL) |
70 | memset(szPeriod, 0, 3); | 70 | *szPeriod = 0; |
71 | } | ||
72 | 71 | ||
73 | lcd_puts_scroll(0,LINE_Y,(++szDelimit)); | 72 | lcd_puts_scroll(0,LINE_Y,(++szDelimit)); |
74 | break; | 73 | break; |
@@ -91,11 +90,14 @@ static void draw_screen(struct mp3entry* id3) | |||
91 | #ifdef HAVE_LCD_BITMAP | 90 | #ifdef HAVE_LCD_BITMAP |
92 | char buffer[64]; | 91 | char buffer[64]; |
93 | 92 | ||
93 | lcd_puts_scroll(0, l++, id3->path); | ||
94 | lcd_puts(0, l++, id3->title?id3->title:""); | 94 | lcd_puts(0, l++, id3->title?id3->title:""); |
95 | lcd_puts(0, l++, id3->album?id3->album:""); | 95 | lcd_puts(0, l++, id3->album?id3->album:""); |
96 | lcd_puts(0, l++, id3->artist?id3->artist:""); | 96 | lcd_puts(0, l++, id3->artist?id3->artist:""); |
97 | 97 | ||
98 | snprintf(buffer,sizeof(buffer), "%d ms", id3->length); | 98 | snprintf(buffer,sizeof(buffer), "Time: %d:%d", |
99 | id3->length / 60000, | ||
100 | id3->length % 60000 / 1000 ); | ||
99 | lcd_puts(0, l++, buffer); | 101 | lcd_puts(0, l++, buffer); |
100 | 102 | ||
101 | snprintf(buffer,sizeof(buffer), "%d kbits", id3->bitrate); | 103 | snprintf(buffer,sizeof(buffer), "%d kbits", id3->bitrate); |