redraw volume state after header update only if classic interface is active

This commit is contained in:
Andrzej Rybczak
2009-08-12 16:18:49 +02:00
parent b51975e6bf
commit c30fec4ee6

View File

@@ -237,10 +237,12 @@ int main(int argc, char *argv[])
*wHeader << clEnd << fmtBoldEnd;
}
}
wHeader->SetColor(Config.volume_color);
*wHeader << XY(wHeader->GetWidth()-VolumeState.length(), 0) << VolumeState;
wHeader->SetColor(Config.header_color);
if (!Config.new_design)
{
wHeader->SetColor(Config.volume_color);
*wHeader << XY(wHeader->GetWidth()-VolumeState.length(), 0) << VolumeState;
wHeader->SetColor(Config.header_color);
}
wHeader->Refresh();
RedrawHeader = 0;
}