mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
Don't leave the mouse grabbed if the video mode failed.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2926 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
333339782b
commit
794ac6d3d3
1 changed files with 5 additions and 2 deletions
|
@ -578,9 +578,12 @@ static qboolean CreateMainWindow(rendererstate_t *info)
|
||||||
{
|
{
|
||||||
TRACE(("dbg: GLVID_SetMode: VID_SetFullDIBMode\n"));
|
TRACE(("dbg: GLVID_SetMode: VID_SetFullDIBMode\n"));
|
||||||
stat = VID_SetFullDIBMode(info);
|
stat = VID_SetFullDIBMode(info);
|
||||||
|
if (stat)
|
||||||
|
{
|
||||||
IN_ActivateMouse ();
|
IN_ActivateMouse ();
|
||||||
IN_HideMouse ();
|
IN_HideMouse ();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return stat;
|
return stat;
|
||||||
}
|
}
|
||||||
BOOL CheckForcePixelFormat(rendererstate_t *info);
|
BOOL CheckForcePixelFormat(rendererstate_t *info);
|
||||||
|
|
Loading…
Reference in a new issue