From 794ac6d3d31c9a32e88f9577ce945426e8f747f0 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sat, 16 Feb 2008 03:41:15 +0000 Subject: [PATCH] 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 --- engine/gl/gl_vidnt.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/engine/gl/gl_vidnt.c b/engine/gl/gl_vidnt.c index 0f8ad0bda..e96a06247 100644 --- a/engine/gl/gl_vidnt.c +++ b/engine/gl/gl_vidnt.c @@ -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; }