refresh main screen only if necessary

This commit is contained in:
Andrzej Rybczak
2009-09-17 00:59:30 +00:00
parent ff84ba8d9d
commit 8109d26daf
5 changed files with 35 additions and 34 deletions

View File

@@ -166,7 +166,7 @@ int main(int argc, char *argv[])
Mpd.SetErrorHandler(NcmpcppErrorCallback, 0);
// local variables
int input;
int input = 0;
bool main_exit = 0;
bool design_changed = 0;
@@ -285,7 +285,8 @@ int main(int argc, char *argv[])
// header stuff end
myScreen->Update();
myScreen->RefreshWindow();
if (input != ERR)
myScreen->RefreshWindow();
myScreen->ReadKey(input);
if (input == ERR)