summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 594de04)
raw | patch | inline | side by side (parent: 594de04)
author | Kalle Wallin <kaw@linux.se> | |
Wed, 21 Apr 2004 14:40:04 +0000 (14:40 +0000) | ||
committer | Kalle Wallin <kaw@linux.se> | |
Wed, 21 Apr 2004 14:40:04 +0000 (14:40 +0000) |
screen.c | patch | blob | history |
diff --git a/screen.c b/screen.c
index ea5cc36253e83a290bd281d99b2f74506c24aec5..ccf7c8cc71893c9490b2c9bc674a224f0b34878d 100644 (file)
--- a/screen.c
+++ b/screen.c
WINDOW *w = screen->status_window.w;
mpd_Status *status = c->status;
mpd_Song *song = c->song;
+ int elapsedTime = c->status->elapsedTime;
int x = 0;
if( time(NULL) - screen->status_timestamp <= STATUS_MESSAGE_TIMEOUT )
/* time */
+ if( c->seek_song_id == c->song_id )
+ elapsedTime = c->seek_target_time;
if( IS_PLAYING(status->state) || IS_PAUSED(status->state) )
{
x = screen->status_window.cols - strlen(screen->buf);
snprintf(screen->buf, screen->buf_size,
" [%i:%02i/%i:%02i] ",
- status->elapsedTime/60, status->elapsedTime%60,
+ elapsedTime/60, elapsedTime%60,
status->totalTime/60, status->totalTime%60 );
mvwaddstr(w, 0, x, screen->buf);