mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-04-28 21:07:59 +03:00
Do not treat Alt-Tab as resolution change (bug 7866)
This commit is contained in:
parent
65d51665e5
commit
5dcac4c48f
3 changed files with 9 additions and 0 deletions
|
@ -252,6 +252,11 @@ namespace SDLUtil
|
|||
SDL_GL_GetDrawableSize(mSDLWindow, &w, &h);
|
||||
int x, y;
|
||||
SDL_GetWindowPosition(mSDLWindow, &x, &y);
|
||||
|
||||
// Happens when you Alt-Tab out of game
|
||||
if (w == 0 && h == 0)
|
||||
return;
|
||||
|
||||
mViewer->getCamera()->getGraphicsContext()->resized(x, y, w, h);
|
||||
|
||||
mViewer->getEventQueue()->windowResize(x, y, w, h);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue