Sfoglia il codice sorgente

fix android portrait mode

Laserlicht 1 mese fa
parent
commit
8973e4ba47
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. 4 0
      client/eventsSDL/InputHandler.cpp

+ 4 - 0
client/eventsSDL/InputHandler.cpp

@@ -255,7 +255,11 @@ void InputHandler::preprocessEvent(const SDL_Event & ev)
 			case SDL_WINDOWEVENT_SIZE_CHANGED:
 			{
 				std::scoped_lock interfaceLock(ENGINE->interfaceMutex);
+#ifdef VCMI_MOBILE
+				ENGINE->onScreenResize(true, false);
+#else
 				ENGINE->onScreenResize(true, true);
+#endif
 			}
 				break;
 			case SDL_WINDOWEVENT_FOCUS_GAINED: