improve time displaying / allow markers for empty tags without color

This commit is contained in:
unK
2008-09-13 17:09:20 +02:00
parent 0060450b10
commit 3419ff13a8
6 changed files with 53 additions and 57 deletions

View File

@@ -321,9 +321,9 @@ void NcmpcppStatusChanged(MPDConnection *Mpd, MPDStatusChanges changed, void *da
{
string tracklength;
if (s.GetTotalLength())
tracklength = " [" + ShowTime(elapsed) + "/" + s.GetLength() + "]";
tracklength = " [" + Song::ShowTime(elapsed) + "/" + s.GetLength() + "]";
else
tracklength = " [" + ShowTime(elapsed) + "]";
tracklength = " [" + Song::ShowTime(elapsed) + "]";
my_string_t playing_song = TO_WSTRING(DisplaySong(s, &Config.song_status_format));
int max_length_without_scroll = wFooter->GetWidth()-player_state.length()-tracklength.length();