mirror of
https://github.com/vcmi/vcmi.git
synced 2025-04-11 11:31:52 +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;
|
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);
|
boost::unique_lock<boost::mutex> lock(eventsM);
|
||||||
events.push(ev);
|
events.push(ev);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user