allow the mouse to be freed when vid_fullscreen changes from 1 to 0

This commit is contained in:
Bill Currie 2001-05-18 17:11:30 +00:00
parent 2e11cbb8a4
commit 3e2a92af1c

View file

@ -325,8 +325,16 @@ void X11_UpdateFullscreen (cvar_t *v_fs)
return;
}
if (v_fs->int_val==0) {
if (_windowed_mouse) {
_windowed_mouse->flags &= ~CVAR_ROM;
}
X11_RestoreVidMode();
} else {
if (_windowed_mouse) {
_windowed_mouse->flags &= ~CVAR_ROM;
Cvar_Set (_windowed_mouse, "1");
_windowed_mouse->flags |= CVAR_ROM;
}
X11_SetVidMode(scr_width,scr_height);
}
}