summaryrefslogtreecommitdiff
path: root/src/window_gui.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-09-30 21:00:35 +0000
committerrubidium <rubidium@openttd.org>2009-09-30 21:00:35 +0000
commit00324050930287e25d9a616f12cdf1421c3445e7 (patch)
tree9b463f5f1c52a367a2b364754d8697ff149145eb /src/window_gui.h
parent2fa312aab9f7bcad6689f9da9dc92b0b096b0247 (diff)
downloadopenttd-00324050930287e25d9a616f12cdf1421c3445e7.tar.xz
(svn r17673) -Codechange: make InvalidateThisWindowData a function of the window class
Diffstat (limited to 'src/window_gui.h')
-rw-r--r--src/window_gui.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/window_gui.h b/src/window_gui.h
index 73e8e06b2..2e9b590b8 100644
--- a/src/window_gui.h
+++ b/src/window_gui.h
@@ -634,6 +634,16 @@ public:
void SetDirty() const;
void ReInit();
+ /**
+ * Mark this window's data as invalid (in need of re-computing)
+ * @param data The data to invalidate with
+ */
+ void InvalidateData(int data = 0)
+ {
+ this->SetDirty();
+ this->OnInvalidateData(data);
+ }
+
/*** Event handling ***/
/**