diff --git a/platforms/sdl/base/AppPlatform_sdl_base.cpp b/platforms/sdl/base/AppPlatform_sdl_base.cpp index 54794f7c..29b7f050 100644 --- a/platforms/sdl/base/AppPlatform_sdl_base.cpp +++ b/platforms/sdl/base/AppPlatform_sdl_base.cpp @@ -61,7 +61,7 @@ void AppPlatform_sdl_base::initSoundSystem() #ifndef ANDROID m_pSoundSystem = new SoundSystemAL(); #else - m_pSoundSystem = new SoundSystem(); + m_pSoundSystem = new SoundSystem(); #endif LOG_I("Initializing OpenAL SoundSystem..."); } diff --git a/platforms/sdl/main.cpp b/platforms/sdl/main.cpp index 831667b2..20287fb4 100644 --- a/platforms/sdl/main.cpp +++ b/platforms/sdl/main.cpp @@ -35,10 +35,10 @@ static void teardown() static int TranslateSDLKeyCodeToVirtual(int sdlCode) { - if (sdlCode == SDLK_AC_BACK) { - // Android Back Button - sdlCode = SDLK_ESCAPE; - } + if (sdlCode == SDLK_AC_BACK) { + // Android Back Button + sdlCode = SDLK_ESCAPE; + } switch (sdlCode) { #define CODE(x) case SDLK_ ## x: return SDLVK_ ## x; #include "compat/SDLKeyCodes.h" diff --git a/source/client/gui/components/TextInputBox.cpp b/source/client/gui/components/TextInputBox.cpp index f3fd3401..9bb8289e 100644 --- a/source/client/gui/components/TextInputBox.cpp +++ b/source/client/gui/components/TextInputBox.cpp @@ -179,18 +179,18 @@ void TextInputBox::setFocused(Minecraft* minecraft, bool b) if (m_bFocused == b) return; - if (b) - { - int x = m_xPos / Gui::InvGuiScale; - int y = m_yPos / Gui::InvGuiScale; - int w = m_width / Gui::InvGuiScale; - int h = m_height / Gui::InvGuiScale; - minecraft->platform()->showKeyboard(x, y, w, h); - } - else - { - minecraft->platform()->hideKeyboard(); - } + if (b) + { + int x = m_xPos / Gui::InvGuiScale; + int y = m_yPos / Gui::InvGuiScale; + int w = m_width / Gui::InvGuiScale; + int h = m_height / Gui::InvGuiScale; + minecraft->platform()->showKeyboard(x, y, w, h); + } + else + { + minecraft->platform()->hideKeyboard(); + } m_bFocused = b; if (b)