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:
Spoike 2008-02-16 03:41:15 +00:00
parent 333339782b
commit 794ac6d3d3

View file

@ -578,8 +578,11 @@ 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);
IN_ActivateMouse (); if (stat)
IN_HideMouse (); {
IN_ActivateMouse ();
IN_HideMouse ();
}
} }
return stat; return stat;
} }