From fdf3106d7ea96d6a4face027bafd9b828633e3c4 Mon Sep 17 00:00:00 2001 From: TheBrokenRail Date: Thu, 2 Nov 2023 21:46:27 -0400 Subject: [PATCH] Fix Some Indentation Errors --- platforms/sdl/base/AppPlatform_sdl_base.cpp | 2 +- platforms/sdl/main.cpp | 8 +++---- source/client/gui/components/TextInputBox.cpp | 24 +++++++++---------- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/platforms/sdl/base/AppPlatform_sdl_base.cpp b/platforms/sdl/base/AppPlatform_sdl_base.cpp index 54794f7..29b7f05 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 b85d9a0..b8dc9f2 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 3ade49d..13832f7 100644 --- a/source/client/gui/components/TextInputBox.cpp +++ b/source/client/gui/components/TextInputBox.cpp @@ -184,18 +184,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)