Working on portrait mode
This commit is contained in:
1 parent
b8d79c7b7b
commit
6b39cfca3b
5 files changed
+162
-27
No files matched your search
+5
-5
@@ -694,9 +694,9 @@ namespace ZL
|
||||
if (!loadingCompleted) {
|
||||
drawLoading();
|
||||
}
|
||||
else if (Environment::width < Environment::height) {
|
||||
/*else if (Environment::width < Environment::height) {
|
||||
drawMobilePortraitOverlay();
|
||||
}
|
||||
}*/
|
||||
else
|
||||
{
|
||||
Location* loc = currentLocation();
|
||||
@@ -733,7 +733,7 @@ namespace ZL
|
||||
CheckGlError(__FILE__, __LINE__);
|
||||
}
|
||||
|
||||
void Game::drawMobilePortraitOverlay()
|
||||
/*void Game::drawMobilePortraitOverlay()
|
||||
{
|
||||
if (!mobileRotateTexture) return;
|
||||
|
||||
@@ -762,7 +762,7 @@ namespace ZL
|
||||
renderer.PopProjectionMatrix();
|
||||
renderer.shaderManager.PopShader();
|
||||
CheckGlError(__FILE__, __LINE__);
|
||||
}
|
||||
}*/
|
||||
|
||||
void Game::drawLoading()
|
||||
{
|
||||
@@ -944,7 +944,7 @@ namespace ZL
|
||||
}
|
||||
|
||||
// Suppress all input while portrait overlay is shown
|
||||
if (mobileIsPortrait) continue;
|
||||
//if (mobileIsPortrait) continue;
|
||||
|
||||
#ifdef __ANDROID__
|
||||
if (event.type == SDL_KEYDOWN && event.key.keysym.sym == SDLK_AC_BACK) {
|
||||
|
||||
Reference in new issue
Block a user