1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-17 01:32:21 +02:00

Fixed UI updates on switching to/from fullscreen

This commit is contained in:
Ivan Savenko
2023-07-05 18:14:37 +03:00
parent 7e00a702c1
commit 2a634b2ec0
7 changed files with 31 additions and 21 deletions

View File

@ -121,6 +121,8 @@ void InputHandler::preprocessEvent(const SDL_Event & ev)
{
Settings full = settings.write["video"]["fullscreen"];
full->Bool() = !full->Bool();
GH.onScreenResize();
return;
}
else if(ev.type == SDL_USEREVENT)