Reduce unnecessary status bar redraws

This commit is contained in:
Jonathan G Rennison
2020-02-13 18:42:40 +00:00
parent e41c85e8ec
commit 57f490db2b
3 changed files with 7 additions and 3 deletions

View File

@@ -276,7 +276,9 @@ static void OnNewDay()
DisasterDailyLoop();
IndustryDailyLoop();
SetWindowWidgetDirty(WC_STATUS_BAR, 0, 0);
if (!_settings_client.gui.time_in_minutes || _settings_client.gui.date_with_time > 0) {
SetWindowWidgetDirty(WC_STATUS_BAR, 0, 0);
}
EnginesDailyLoop();
/* Refresh after possible snowline change */