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

@@ -184,7 +184,7 @@ void InvalidateCompanyWindows(const Company *company)
{
CompanyID cid = company->index;
if (cid == _local_company) SetWindowDirty(WC_STATUS_BAR, 0);
if (cid == _local_company) SetWindowWidgetDirty(WC_STATUS_BAR, 0, 2);
SetWindowDirty(WC_FINANCES, cid);
}