summaryrefslogtreecommitdiff
path: root/src/window_gui.h
diff options
context:
space:
mode:
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 ***/
/**