summaryrefslogtreecommitdiff
path: root/src/osk_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2013-03-17 13:04:10 +0000
committerfrosch <frosch@openttd.org>2013-03-17 13:04:10 +0000
commit579ee7a59230db6d1caac8e653d27ccc6e454e2e (patch)
tree58aefe8ebad6e9dbeeda73f02f9a1071f22b091d /src/osk_gui.cpp
parent9cad36865fb6aeff8aeab6d28bea41f05d2c91e0 (diff)
downloadopenttd-579ee7a59230db6d1caac8e653d27ccc6e454e2e.tar.xz
(svn r25089) -Codechange: Move CharSetFilter from QueryString to Textbuf.
Diffstat (limited to 'src/osk_gui.cpp')
-rw-r--r--src/osk_gui.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/osk_gui.cpp b/src/osk_gui.cpp
index ea66782e8..015222d4d 100644
--- a/src/osk_gui.cpp
+++ b/src/osk_gui.cpp
@@ -83,9 +83,9 @@ struct OskWindow : public Window {
for (uint i = 0; i < OSK_KEYBOARD_ENTRIES; i++) {
this->SetWidgetDisabledState(WID_OSK_LETTERS + i,
- !IsValidChar(_keyboard[this->shift][i], this->qs->afilter) || _keyboard[this->shift][i] == ' ');
+ !IsValidChar(_keyboard[this->shift][i], this->qs->text.afilter) || _keyboard[this->shift][i] == ' ');
}
- this->SetWidgetDisabledState(WID_OSK_SPACE, !IsValidChar(' ', this->qs->afilter));
+ this->SetWidgetDisabledState(WID_OSK_SPACE, !IsValidChar(' ', this->qs->text.afilter));
this->SetWidgetLoweredState(WID_OSK_SHIFT, HasBit(_keystate, KEYS_SHIFT));
this->SetWidgetLoweredState(WID_OSK_CAPS, HasBit(_keystate, KEYS_CAPS));
@@ -113,7 +113,7 @@ struct OskWindow : public Window {
if (widget >= WID_OSK_LETTERS) {
WChar c = _keyboard[this->shift][widget - WID_OSK_LETTERS];
- if (!IsValidChar(c, this->qs->afilter)) return;
+ if (!IsValidChar(c, this->qs->text.afilter)) return;
if (this->qs->text.InsertChar(c)) this->OnEditboxChanged(WID_OSK_TEXT);