diff options
author | rubidium <rubidium@openttd.org> | 2009-09-01 20:42:12 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-09-01 20:42:12 +0000 |
commit | a4af668986ce4a2744a4c481e018b32b683b0fce (patch) | |
tree | 123ad87bf4d03d94a3416b46edbbc74c2112aff9 /src/subsidy.cpp | |
parent | c96733d1919effd877c51914a91c8a7ca0e0c6e1 (diff) | |
download | openttd-a4af668986ce4a2744a4c481e018b32b683b0fce.tar.xz |
(svn r17356) -Fix: actually implement scrolling for the subsidy list instead of 'just' showing a scroll bar.
Diffstat (limited to 'src/subsidy.cpp')
-rw-r--r-- | src/subsidy.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/subsidy.cpp b/src/subsidy.cpp index 05552300e..634c83d9a 100644 --- a/src/subsidy.cpp +++ b/src/subsidy.cpp @@ -57,7 +57,7 @@ void Subsidy::AwardTo(CompanyID company) ); AI::BroadcastNewEvent(new AIEventSubsidyAwarded(this->index)); - InvalidateWindow(WC_SUBSIDIES_LIST, 0); + InvalidateWindowData(WC_SUBSIDIES_LIST, 0); } /** @@ -152,7 +152,7 @@ void DeleteSubsidyWith(SourceType type, SourceID index) } if (dirty) { - InvalidateWindow(WC_SUBSIDIES_LIST, 0); + InvalidateWindowData(WC_SUBSIDIES_LIST, 0); RebuildSubsidisedSourceAndDestinationCache(); } } @@ -315,7 +315,7 @@ void SubsidyMonthlyLoop() } while (n--); } - if (modified) InvalidateWindow(WC_SUBSIDIES_LIST, 0); + if (modified) InvalidateWindowData(WC_SUBSIDIES_LIST, 0); } /** |