summaryrefslogtreecommitdiff
path: root/src/osk_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-09-13 19:15:59 +0000
committerfrosch <frosch@openttd.org>2009-09-13 19:15:59 +0000
commitebd916be3def20902cf19ffd16555074728eb9c3 (patch)
treec7748d7612a61b9558ffd10ffb176e34584f2376 /src/osk_gui.cpp
parent5de9cc46b50b8e677395543c10b26b59c860212b (diff)
downloadopenttd-ebd916be3def20902cf19ffd16555074728eb9c3.tar.xz
(svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability.
Diffstat (limited to 'src/osk_gui.cpp')
-rw-r--r--src/osk_gui.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/osk_gui.cpp b/src/osk_gui.cpp
index 4aa4285f7..cb411391f 100644
--- a/src/osk_gui.cpp
+++ b/src/osk_gui.cpp
@@ -245,20 +245,20 @@ struct OskWindow : public Window {
QueryStringBaseWindow *w = dynamic_cast<QueryStringBaseWindow*>(this->parent);
if (w != NULL) w->OnOSKInput(this->text_btn);
- this->InvalidateWidget(OSK_WIDGET_TEXT);
- if (this->parent != NULL) this->parent->InvalidateWidget(this->text_btn);
+ this->SetWidgetDirty(OSK_WIDGET_TEXT);
+ if (this->parent != NULL) this->parent->SetWidgetDirty(this->text_btn);
}
virtual void OnMouseLoop()
{
this->qs->HandleEditBox(this, OSK_WIDGET_TEXT);
/* make the caret of the parent window also blink */
- this->parent->InvalidateWidget(this->text_btn);
+ this->parent->SetWidgetDirty(this->text_btn);
}
virtual void OnInvalidateData(int)
{
- this->InvalidateWidget(OSK_WIDGET_TEXT);
+ this->SetWidgetDirty(OSK_WIDGET_TEXT);
}
};