mirror of
https://github.com/vcmi/vcmi.git
synced 2025-03-19 21:10:12 +02:00
Fix issue 2239. Pillarbox when restored after alt-tab in fullscreen
This isn't best solution and all SDL-related code need refactoring, but it's works.
This commit is contained in:
parent
ce5b7c73be
commit
f940e3ed42
@ -1073,6 +1073,15 @@ static void handleEvent(SDL_Event & ev)
|
||||
|
||||
return;
|
||||
}
|
||||
else if(ev.type == SDL_WINDOWEVENT)
|
||||
{
|
||||
switch (ev.window.event) {
|
||||
case SDL_WINDOWEVENT_RESTORED:
|
||||
fullScreenChanged();
|
||||
break;
|
||||
}
|
||||
return;
|
||||
}
|
||||
{
|
||||
boost::unique_lock<boost::mutex> lock(eventsM);
|
||||
events.push(ev);
|
||||
|
Loading…
x
Reference in New Issue
Block a user