diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-08-23 22:48:57 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-08-24 21:08:17 +0300 |
commit | d3994b21fda3e7d8ba417a382fc8f065a7bf1c52 (patch) | |
tree | 420c78c8ceda39895cce60849e3aeafedd41f081 /src/gui/widgets/textfield.cpp | |
parent | 576b7dca4676ba2c1ea63afb6bbc96fd11183048 (diff) | |
download | plus-d3994b21fda3e7d8ba417a382fc8f065a7bf1c52.tar.gz plus-d3994b21fda3e7d8ba417a382fc8f065a7bf1c52.tar.bz2 plus-d3994b21fda3e7d8ba417a382fc8f065a7bf1c52.tar.xz plus-d3994b21fda3e7d8ba417a382fc8f065a7bf1c52.zip |
improve some mode methods in Client.
Diffstat (limited to 'src/gui/widgets/textfield.cpp')
-rw-r--r-- | src/gui/widgets/textfield.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/widgets/textfield.cpp b/src/gui/widgets/textfield.cpp index 0fec552e3..37629e44e 100644 --- a/src/gui/widgets/textfield.cpp +++ b/src/gui/widgets/textfield.cpp @@ -119,7 +119,7 @@ TextField::~TextField() void TextField::updateAlpha() { - const float alpha = std::max(Client::getGuiAlpha(), + const float alpha = std::max(client->getGuiAlpha(), Theme::instance()->getMinimumOpacity()); if (alpha != mAlpha) @@ -550,7 +550,7 @@ void TextField::fontChanged() void TextField::mousePressed(gcn::MouseEvent &mouseEvent) { #ifdef ANDROID - if (!Client::isKeyboardVisible()) + if (!client->isKeyboardVisible()) inputManager.executeAction(Input::KEY_SHOW_KEYBOARD); #endif if (mouseEvent.getButton() == gcn::MouseEvent::RIGHT) @@ -578,7 +578,7 @@ void TextField::mousePressed(gcn::MouseEvent &mouseEvent) void TextField::focusGained(const gcn::Event &event A_UNUSED) { #ifdef ANDROID - if (!Client::isKeyboardVisible()) + if (!client->isKeyboardVisible()) inputManager.executeAction(Input::KEY_SHOW_KEYBOARD); #endif } |