mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-17 22:50:51 +00:00
compile fix for when vidmode isn't available
This commit is contained in:
parent
b70ffbf871
commit
3551b82a50
1 changed files with 51 additions and 48 deletions
|
@ -376,7 +376,6 @@ void
|
|||
X11_SetVidMode (int width, int height)
|
||||
{
|
||||
const char *str = getenv ("MESA_GLX_FX");
|
||||
static int initialized = 0;
|
||||
|
||||
if (vidmode_active)
|
||||
return;
|
||||
|
@ -386,6 +385,9 @@ X11_SetVidMode (int width, int height)
|
|||
}
|
||||
|
||||
#ifdef HAVE_VIDMODE
|
||||
{
|
||||
static int initialized = 0;
|
||||
|
||||
if (!vidmode_avail)
|
||||
vidmode_avail = VID_CheckVMode (x_disp, NULL, NULL);
|
||||
|
||||
|
@ -447,6 +449,7 @@ X11_SetVidMode (int width, int height)
|
|||
vidmode_avail = vidmode_active = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue