1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-01 03:21:41 +00:00

Pause game when minimised on Windows

This commit is contained in:
PlutonicOverkill 2017-07-20 21:31:05 +12:00
parent 7f634514a8
commit 5049fe4320

View File

@ -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;