1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-25 22:42:04 +02:00

portrait mode for android

This commit is contained in:
Laserlicht
2025-02-08 20:02:31 +01:00
parent d8ee343800
commit 0424f71cb2
8 changed files with 138 additions and 85 deletions

View File

@@ -234,6 +234,14 @@ void InputHandler::preprocessEvent(const SDL_Event & ev)
boost::mutex::scoped_lock interfaceLock(GH.interfaceMutex);
GH.onScreenResize(false);
}
#endif
break;
case SDL_WINDOWEVENT_SIZE_CHANGED:
#ifdef VCMI_ANDROID
{
boost::mutex::scoped_lock interfaceLock(GH.interfaceMutex);
GH.onScreenResize(true);
}
#endif
break;
case SDL_WINDOWEVENT_FOCUS_GAINED: