forked from mirror/openmw-tes3mp
Merge pull request #1340 from PlutonicOverkill/pause-when-minimised
Pause game when minimised on Windows (Bug #3943)
This commit is contained in:
commit
8feb495d17
1 changed files with 2 additions and 0 deletions
|
@ -221,10 +221,12 @@ InputWrapper::InputWrapper(SDL_Window* window, osg::ref_ptr<osgViewer::Viewer> v
|
||||||
case SDL_WINDOWEVENT_CLOSE:
|
case SDL_WINDOWEVENT_CLOSE:
|
||||||
break;
|
break;
|
||||||
case SDL_WINDOWEVENT_SHOWN:
|
case SDL_WINDOWEVENT_SHOWN:
|
||||||
|
case SDL_WINDOWEVENT_RESTORED:
|
||||||
if (mWindowListener)
|
if (mWindowListener)
|
||||||
mWindowListener->windowVisibilityChange(true);
|
mWindowListener->windowVisibilityChange(true);
|
||||||
break;
|
break;
|
||||||
case SDL_WINDOWEVENT_HIDDEN:
|
case SDL_WINDOWEVENT_HIDDEN:
|
||||||
|
case SDL_WINDOWEVENT_MINIMIZED:
|
||||||
if (mWindowListener)
|
if (mWindowListener)
|
||||||
mWindowListener->windowVisibilityChange(false);
|
mWindowListener->windowVisibilityChange(false);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue