add autocenter mode

This commit is contained in:
unknown
2008-08-19 23:49:22 +02:00
parent f278f3e361
commit e5277ec810
5 changed files with 17 additions and 2 deletions

View File

@@ -320,6 +320,8 @@ void NcmpcppStatusChanged(MPDConnection *Mpd, MPDStatusChanges changed, void *da
if (old_playing >= 0)
mPlaylist->BoldOption(old_playing+1, 0);
mPlaylist->BoldOption(now_playing+1, 1);
if (Config.autocenter_mode)
mPlaylist->Highlight(now_playing+1);
}
if (!Mpd->GetElapsedTime())
mvwhline(wFooter->RawWin(), 0, 0, 0, wFooter->GetWidth());