diff options
author | rubidium <rubidium@openttd.org> | 2009-09-30 21:00:35 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-09-30 21:00:35 +0000 |
commit | 00324050930287e25d9a616f12cdf1421c3445e7 (patch) | |
tree | 9b463f5f1c52a367a2b364754d8697ff149145eb /src/newgrf_gui.cpp | |
parent | 2fa312aab9f7bcad6689f9da9dc92b0b096b0247 (diff) | |
download | openttd-00324050930287e25d9a616f12cdf1421c3445e7.tar.xz |
(svn r17673) -Codechange: make InvalidateThisWindowData a function of the window class
Diffstat (limited to 'src/newgrf_gui.cpp')
-rw-r--r-- | src/newgrf_gui.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/newgrf_gui.cpp b/src/newgrf_gui.cpp index 03d6758e1..f9c753452 100644 --- a/src/newgrf_gui.cpp +++ b/src/newgrf_gui.cpp @@ -344,7 +344,7 @@ public: this->sel = NULL; this->sel_pos = -1; } - InvalidateThisWindowData(this, 1); + this->InvalidateData(1); break; } @@ -379,7 +379,7 @@ public: case ANGRFW_RESCAN: // Rescan list ScanNewGRFFiles(); - InvalidateThisWindowData(this, 0); + this->InvalidateData(); break; } } @@ -437,8 +437,7 @@ public: this->sel = this->grfs[this->sel_pos]; this->ScrollToSelected(); - - InvalidateThisWindowData(this, 1); + this->InvalidateData(1); } return ES_HANDLED; @@ -448,7 +447,7 @@ public: { this->grfs.SetFilterState(!StrEmpty(this->edit_str_buf)); this->grfs.ForceRebuild(); - InvalidateThisWindowData(this, 1); + this->InvalidateData(1); } }; |