summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-23 19:38:28 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-24 21:08:16 +0300
commitd168ec33c553d1e331d1397d068fccdb70a594aa (patch)
tree9ae9056e8332ca15da027169f4c96b258cba7874 /src/gui
parent83cd167e199a60930aa1ea551304a9a8e624806c (diff)
downloadmanaplus-d168ec33c553d1e331d1397d068fccdb70a594aa.tar.gz
manaplus-d168ec33c553d1e331d1397d068fccdb70a594aa.tar.bz2
manaplus-d168ec33c553d1e331d1397d068fccdb70a594aa.tar.xz
manaplus-d168ec33c553d1e331d1397d068fccdb70a594aa.zip
fix compilation errors with SDL1.2
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/gui.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index 8068ffad7..9441677a6 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -376,8 +376,10 @@ bool Gui::handleKeyInput2()
keyInput.getType(), keyInput.isNumericPad(),
keyInput.getActionId(), keyInput.getKey());
+#ifdef USE_SDL2
if (!keyInput.getText().empty())
keyEventToGlobalKeyListeners.setText(keyInput.getText());
+#endif
distributeKeyEventToGlobalKeyListeners(
keyEventToGlobalKeyListeners);
@@ -401,8 +403,10 @@ bool Gui::handleKeyInput2()
mShiftPressed, mControlPressed, mAltPressed, mMetaPressed,
keyInput.getType(), keyInput.isNumericPad(),
keyInput.getActionId(), keyInput.getKey());
+#ifdef USE_SDL2
if (!keyInput.getText().empty())
keyEvent.setText(keyInput.getText());
+#endif
if (!mFocusHandler->getFocused()->isFocusable())
mFocusHandler->focusNone();