summaryrefslogtreecommitdiff
path: root/src/osk_gui.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-05-28 15:28:27 +0000
committersmatz <smatz@openttd.org>2008-05-28 15:28:27 +0000
commit3f000be67001c25d0beccd86de09d3f81aa7200d (patch)
treeff3f7bc2a7c47e268c3a4f05feffa64a42242f99 /src/osk_gui.cpp
parentf740702f90314e5575eac2c200b05cc5983985c3 (diff)
downloadopenttd-3f000be67001c25d0beccd86de09d3f81aa7200d.tar.xz
(svn r13310) -Fix: invalidate OSK when parent editbox changes (from keyboard)
Diffstat (limited to 'src/osk_gui.cpp')
-rw-r--r--src/osk_gui.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/osk_gui.cpp b/src/osk_gui.cpp
index bd7bc16bd..2f1bc41ea 100644
--- a/src/osk_gui.cpp
+++ b/src/osk_gui.cpp
@@ -203,6 +203,11 @@ struct OskWindow : public Window {
/* make the caret of the parent window also blink */
this->parent->InvalidateWidget(this->text_btn);
}
+
+ virtual void OnInvalidateData(int)
+ {
+ this->InvalidateWidget(OSK_WIDGET_TEXT);
+ }
};
static const Widget _osk_widgets[] = {