redraw statusbar after terminal resize

previous changes broke this, so here is the fix.
This commit is contained in:
Andrzej Rybczak
2009-04-28 16:22:06 +02:00
parent 7e479de3e0
commit ab7dbe9cbe
3 changed files with 6 additions and 8 deletions

View File

@@ -376,14 +376,9 @@ int main(int argc, char *argv[])
wFooter->Resize(COLS, wFooter->GetHeight());
myScreen->Refresh();
PlayerState mpd_state = Mpd->GetState();
RedrawStatusbar = 1;
StatusChanges changes;
changes.StatusFlags = 1; // force status update
if (mpd_state == psPlay || mpd_state == psPause)
changes.ElapsedTime = 1; // restore status
else
changes.PlayerState = 1;
NcmpcppStatusChanged(Mpd, changes, NULL);
}
else if (Keypressed(input, Key.GoToParentDir))