Fix #545 (Grab mouse in fullscreen), based on patch from Jayschwa
This was SVN commit r8022.
This commit is contained in:
parent
dab8365978
commit
2cff131a87
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user