Fix Some Indentation Errors

This commit is contained in:
TheBrokenRail
2023-11-02 21:46:27 -04:00
committed by iProgramInCpp
parent c989ffa721
commit fdf3106d7e
3 changed files with 17 additions and 17 deletions

View File

@@ -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...");
}

View File

@@ -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"

View File

@@ -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)