changed the checks around a bit for time display

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1296 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jerome Kuptz 2002-07-02 05:50:27 +00:00
parent 13059a4c6d
commit 6feb9838c8

View file

@ -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 */