From 2982a0a5336d6444db3e7b4e054a2104ee76b3a5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 9 Sep 2017 01:11:16 +0300 Subject: Replace SDL_IsTextInputActive to lower level SDL function call. --- src/gui/windowmanager.cpp | 2 +- src/progs/manaplus/actions/actions.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/gui/windowmanager.cpp b/src/gui/windowmanager.cpp index ab4224f25..054f19f12 100644 --- a/src/gui/windowmanager.cpp +++ b/src/gui/windowmanager.cpp @@ -473,7 +473,7 @@ void WindowManager::setIcon() bool WindowManager::isKeyboardVisible() { #ifdef USE_SDL2 - return SDL_IsTextInputActive(); + return SDL_GetEventState(SDL_TEXTINPUT) == SDL_ENABLE; #else // USE_SDL2 return mKeyboardHeight > 1; diff --git a/src/progs/manaplus/actions/actions.cpp b/src/progs/manaplus/actions/actions.cpp index b958f8f62..458332fb0 100644 --- a/src/progs/manaplus/actions/actions.cpp +++ b/src/progs/manaplus/actions/actions.cpp @@ -970,7 +970,7 @@ impHandler0(showKeyboard) { #ifdef ANDROID #ifdef USE_SDL2 - if (SDL_IsTextInputActive()) + if (SDL_GetEventState(SDL_TEXTINPUT) == SDL_ENABLE) SDL_StopTextInput(); else SDL_StartTextInput(); -- cgit v1.2.3-70-g09d2