1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-13 19:54:17 +02:00

Fix crash on window resize

This commit is contained in:
Ivan Savenko
2023-09-11 18:44:06 +03:00
parent a09147a433
commit 60cbb939ab

View File

@@ -128,6 +128,7 @@ void InputHandler::preprocessEvent(const SDL_Event & ev)
#endif
else if(ev.type == SDL_KEYDOWN && ev.key.keysym.sym==SDLK_F4)
{
boost::unique_lock<boost::recursive_mutex> lock(*CPlayerInterface::pim);
Settings full = settings.write["video"]["fullscreen"];
full->Bool() = !full->Bool();