mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
allow the mouse to be freed when vid_fullscreen changes from 1 to 0
This commit is contained in:
parent
2e11cbb8a4
commit
3e2a92af1c
1 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue