1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-23 22:37:55 +02:00

fix android portrait mode

This commit is contained in:
Laserlicht
2025-09-12 01:42:20 +02:00
parent 9a95f249fa
commit 8973e4ba47

View File

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