diff options
author | frosch <frosch@openttd.org> | 2009-09-13 19:15:59 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2009-09-13 19:15:59 +0000 |
commit | ebd916be3def20902cf19ffd16555074728eb9c3 (patch) | |
tree | c7748d7612a61b9558ffd10ffb176e34584f2376 /src/cheat_gui.cpp | |
parent | 5de9cc46b50b8e677395543c10b26b59c860212b (diff) | |
download | openttd-ebd916be3def20902cf19ffd16555074728eb9c3.tar.xz |
(svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability.
Diffstat (limited to 'src/cheat_gui.cpp')
-rw-r--r-- | src/cheat_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cheat_gui.cpp b/src/cheat_gui.cpp index be5c99303..3ef1bf426 100644 --- a/src/cheat_gui.cpp +++ b/src/cheat_gui.cpp @@ -67,7 +67,7 @@ static int32 ClickChangeCompanyCheat(int32 p1, int32 p2) */ static int32 ClickSetProdCheat(int32 p1, int32 p2) { - InvalidateWindowClasses(WC_INDUSTRY_VIEW); + SetWindowClassesDirty(WC_INDUSTRY_VIEW); return p1; } @@ -104,7 +104,7 @@ static int32 ClickChangeDateCheat(int32 p1, int32 p2) SetDate(ConvertYMDToDate(_cur_year + p2, ymd.month, ymd.day)); EnginesMonthlyLoop(); - InvalidateWindow(WC_STATUS_BAR, 0); + SetWindowDirty(WC_STATUS_BAR, 0); InvalidateWindowClassesData(WC_BUILD_STATION, 0); ResetSignalVariant(); return _cur_year; |