summaryrefslogtreecommitdiff
path: root/src/newgrf_gui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/newgrf_gui.cpp')
-rw-r--r--src/newgrf_gui.cpp9
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);
}
};