diff options
author | rubidium <rubidium@openttd.org> | 2009-09-27 18:36:05 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-09-27 18:36:05 +0000 |
commit | 1bc18905d753c0d493f303a38edd7c0d8c3c137c (patch) | |
tree | 28c9edcd208e559512b3abb8ad220b61ca5ec444 | |
parent | 7b46347bb15ac648694496daf59627e2d6146c92 (diff) | |
download | openttd-1bc18905d753c0d493f303a38edd7c0d8c3c137c.tar.xz |
(svn r17656) -Change: typo in function name. Also document the parameter (Terkhen)
-rw-r--r-- | src/osk_gui.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/osk_gui.cpp b/src/osk_gui.cpp index ce6d343a9..eb03694c1 100644 --- a/src/osk_gui.cpp +++ b/src/osk_gui.cpp @@ -108,8 +108,9 @@ struct OskWindow : public Window { * Only show valid characters; do not show characters that would * only insert a space when we have a spacebar to do that or * characters that are not allowed to be entered. + * @param shift True if the shift key is pressed. */ - void ChangeOskDiabledState(bool shift) + void ChangeOskDisabledState(bool shift) { for (uint i = 0; i < OSK_KEYBOARD_ENTRIES; i++) { this->SetWidgetDisabledState(OSK_WIDGET_LETTERS + i, @@ -126,7 +127,7 @@ struct OskWindow : public Window { this->SetWidgetLoweredState(OSK_WIDGET_SHIFT, HasBit(_keystate, KEYS_SHIFT)); this->SetWidgetLoweredState(OSK_WIDGET_CAPS, HasBit(_keystate, KEYS_CAPS)); - this->ChangeOskDiabledState(shift); + this->ChangeOskDisabledState(shift); SetDParam(0, this->caption); this->DrawWidgets(); |