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,8 +578,11 @@ static qboolean CreateMainWindow(rendererstate_t *info)
|
|||
{
|
||||
TRACE(("dbg: GLVID_SetMode: VID_SetFullDIBMode\n"));
|
||||
stat = VID_SetFullDIBMode(info);
|
||||
IN_ActivateMouse ();
|
||||
IN_HideMouse ();
|
||||
if (stat)
|
||||
{
|
||||
IN_ActivateMouse ();
|
||||
IN_HideMouse ();
|
||||
}
|
||||
}
|
||||
return stat;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue