mirror of
https://github.com/celisej567/mcpe.git
synced 2026-09-11 20:11:18 +03:00
Fix Some Indentation Errors
This commit is contained in:
committed by
iProgramInCpp
parent
c989ffa721
commit
fdf3106d7e
@@ -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...");
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user