Skip to content

Commit

Permalink
Fix Some Indentation Errors
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBrokenRail committed Nov 3, 2023
1 parent 198e2ad commit f57743f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion platforms/sdl/base/AppPlatform_sdl_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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...");
}
Expand Down
8 changes: 4 additions & 4 deletions platforms/sdl/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
24 changes: 12 additions & 12 deletions source/client/gui/components/TextInputBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f57743f

Please sign in to comment.