From 6feb9838c84539aafc2b0ef228ac094072243217 Mon Sep 17 00:00:00 2001 From: Jerome Kuptz Date: Tue, 2 Jul 2002 05:50:27 +0000 Subject: changed the checks around a bit for time display git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1296 a1c6a512-1295-4272-9138-f99709370657 --- apps/wps.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/apps/wps.c b/apps/wps.c index 04346adc16..7b0cf5d60f 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 */ -- cgit v1.2.3