Fix #545 (Grab mouse in fullscreen), based on patch from Jayschwa

This was SVN commit r8022.
This commit is contained in:
Ykkrosh 2010-08-22 10:00:22 +00:00
parent dab8365978
commit 2cff131a87

View File

@ -75,6 +75,11 @@ bool CVideoMode::SetVideoMode(int w, int h, int bpp, bool fullscreen)
return false;
}
if (fullscreen)
SDL_WM_GrabInput(SDL_GRAB_ON);
else
SDL_WM_GrabInput(SDL_GRAB_OFF);
m_IsFullscreen = fullscreen;
m_CurrentW = w;
m_CurrentH = h;