mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-30 12:40:42 +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)
|
X11_SetVidMode (int width, int height)
|
||||||
{
|
{
|
||||||
const char *str = getenv ("MESA_GLX_FX");
|
const char *str = getenv ("MESA_GLX_FX");
|
||||||
static int initialized = 0;
|
|
||||||
|
|
||||||
if (vidmode_active)
|
if (vidmode_active)
|
||||||
return;
|
return;
|
||||||
|
@ -386,6 +385,9 @@ X11_SetVidMode (int width, int height)
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_VIDMODE
|
#ifdef HAVE_VIDMODE
|
||||||
|
{
|
||||||
|
static int initialized = 0;
|
||||||
|
|
||||||
if (!vidmode_avail)
|
if (!vidmode_avail)
|
||||||
vidmode_avail = VID_CheckVMode (x_disp, NULL, NULL);
|
vidmode_avail = VID_CheckVMode (x_disp, NULL, NULL);
|
||||||
|
|
||||||
|
@ -447,6 +449,7 @@ X11_SetVidMode (int width, int height)
|
||||||
vidmode_avail = vidmode_active = false;
|
vidmode_avail = vidmode_active = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue