From 00324050930287e25d9a616f12cdf1421c3445e7 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 30 Sep 2009 21:00:35 +0000 Subject: (svn r17673) -Codechange: make InvalidateThisWindowData a function of the window class --- src/newgrf_gui.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/newgrf_gui.cpp') 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); } }; -- cgit v1.2.3-54-g00ecf