mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-03-13 06:13:39 +00:00
Fix vsync saving/loading (hopefully...)
git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@778 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
e95a81be95
commit
06635c3552
1 changed files with 3 additions and 7 deletions
|
@ -459,12 +459,7 @@ VID_Unlock -- johnfitz
|
|||
static void VID_Unlock (void)
|
||||
{
|
||||
vid_locked = false;
|
||||
|
||||
//sync up cvars in case they were changed during the lock
|
||||
Cvar_SetValueQuick (&vid_width, modelist[vid_default].width);
|
||||
Cvar_SetValueQuick (&vid_height, modelist[vid_default].height);
|
||||
Cvar_SetValueQuick (&vid_bpp, modelist[vid_default].bpp);
|
||||
Cvar_SetQuick (&vid_fullscreen, (windowed) ? "0" : "1");
|
||||
VID_SyncCvars();
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1120,7 +1115,8 @@ void VID_Init (void)
|
|||
const char *read_vars[] = { "vid_fullscreen",
|
||||
"vid_width",
|
||||
"vid_height",
|
||||
"vid_bpp" };
|
||||
"vid_bpp",
|
||||
"vid_vsync" };
|
||||
#define num_readvars ( sizeof(read_vars)/sizeof(read_vars[0]) )
|
||||
|
||||
Cvar_RegisterVariable (&vid_fullscreen); //johnfitz
|
||||
|
|
Loading…
Reference in a new issue