Fix mouse release issue after toggling fullscreen

git-svn-id: http://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@163 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
stevenaaus 2010-05-02 02:22:24 +00:00
parent 36d80efa84
commit b8741a6e99

View file

@ -1426,6 +1426,11 @@ void VID_Toggle (void)
{
Sbar_Changed (); // Sbar seems to need refreshing
windowed = !windowed;
if (vid.type == MODE_FULLSCREEN_DEFAULT)
vid.type = MODE_WINDOWED;
else
vid.type = MODE_FULLSCREEN_DEFAULT;
Cvar_SetValue ("vid_fullscreen", ! (int)vid_fullscreen.value);
}
else