mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
fix android portrait mode
This commit is contained in:
@@ -255,7 +255,11 @@ void InputHandler::preprocessEvent(const SDL_Event & ev)
|
|||||||
case SDL_WINDOWEVENT_SIZE_CHANGED:
|
case SDL_WINDOWEVENT_SIZE_CHANGED:
|
||||||
{
|
{
|
||||||
std::scoped_lock interfaceLock(ENGINE->interfaceMutex);
|
std::scoped_lock interfaceLock(ENGINE->interfaceMutex);
|
||||||
|
#ifdef VCMI_MOBILE
|
||||||
|
ENGINE->onScreenResize(true, false);
|
||||||
|
#else
|
||||||
ENGINE->onScreenResize(true, true);
|
ENGINE->onScreenResize(true, true);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case SDL_WINDOWEVENT_FOCUS_GAINED:
|
case SDL_WINDOWEVENT_FOCUS_GAINED:
|
||||||
|
|||||||
Reference in New Issue
Block a user