summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-11-28 21:03:34 +0000
committerfrosch <frosch@openttd.org>2012-11-28 21:03:34 +0000
commitbfba90f8648cdb8b10ddd1322f46411761a9c29b (patch)
tree273c0e88f87bd1c3f75b557d3c4c119d4e556202
parent155a9d784c84e2a69a4506b19e0d5204aebcebec (diff)
downloadopenttd-bfba90f8648cdb8b10ddd1322f46411761a9c29b.tar.xz
(svn r24773) -Fix: Shift in the OSK behaved like capslock.
-rw-r--r--src/osk_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osk_gui.cpp b/src/osk_gui.cpp
index a7b4848fc..0dc9aaded 100644
--- a/src/osk_gui.cpp
+++ b/src/osk_gui.cpp
@@ -124,7 +124,7 @@ struct OskWindow : public Window {
if (HasBit(_keystate, KEYS_SHIFT)) {
ToggleBit(_keystate, KEYS_SHIFT);
- this->GetWidget<NWidgetCore>(WID_OSK_SHIFT)->colour = HasBit(_keystate, KEYS_SHIFT) ? COLOUR_WHITE : COLOUR_GREY;
+ this->UpdateOskState();
this->SetDirty();
}
/* Return focus to the parent widget and window. */