summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerome Kuptz <jeromekuptz@gmail.com>2002-07-02 05:50:27 +0000
committerJerome Kuptz <jeromekuptz@gmail.com>2002-07-02 05:50:27 +0000
commit6feb9838c84539aafc2b0ef228ac094072243217 (patch)
treee14ca43f51b97aef8d76eaf18909962664cc3b73
parent13059a4c6d2d61141b84584f1ef141522e7a11c3 (diff)
downloadrockbox-6feb9838c84539aafc2b0ef228ac094072243217.zip
rockbox-6feb9838c84539aafc2b0ef228ac094072243217.tar.gz
rockbox-6feb9838c84539aafc2b0ef228ac094072243217.tar.bz2
rockbox-6feb9838c84539aafc2b0ef228ac094072243217.tar.xz
changed the checks around a bit for time display
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1296 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/wps.c15
1 files changed, 12 insertions, 3 deletions
diff --git a/apps/wps.c b/apps/wps.c
index 04346ad..7b0cf5d 100644
--- a/apps/wps.c
+++ b/apps/wps.c
@@ -142,20 +142,30 @@ int wps_show(void)
if (playing)
{
+#ifdef HAVE_LCD_BITMAP
snprintf(buffer,sizeof(buffer), "Time: %d:%02d / %d:%02d",
id3->elapsed / 60000,
id3->elapsed % 60000 / 1000,
id3->length / 60000,
id3->length % 60000 / 1000 );
-#ifdef HAVE_LCD_BITMAP
lcd_puts(0, 6, buffer);
+ lcd_update();
#else
// Display time with the filename scroll only because the screen has room.
if (global_settings.wps_display == PLAY_DISPLAY_FILENAME_SCROLL)
+ {
+
+ snprintf(buffer,sizeof(buffer), "Time: %d:%02d / %d:%02d",
+ id3->elapsed / 60000,
+ id3->elapsed % 60000 / 1000,
+ id3->length / 60000,
+ id3->length % 60000 / 1000 );
+
lcd_puts(0, 1, buffer);
+ lcd_update();
+ }
#endif
- lcd_update();
}
for ( i=0;i<5;i++ ) {
switch ( button_get(false) ) {
@@ -206,7 +216,6 @@ int wps_show(void)
#endif
mpeg_stop();
break;
-
#ifndef SIMULATOR
case SYS_USB_CONNECTED:
/* Tell the USB thread that we are safe */