mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
fix a missing #ifdef HAVE_VIDMODE
This commit is contained in:
parent
ef0e0a167d
commit
757a0f690c
1 changed files with 2 additions and 0 deletions
|
@ -703,6 +703,7 @@ X11_GetWindowCoords (int *ax, int *ay)
|
||||||
void
|
void
|
||||||
X11_ForceViewPort (void)
|
X11_ForceViewPort (void)
|
||||||
{
|
{
|
||||||
|
#ifdef HAVE_VIDMODE
|
||||||
int ax, ay;
|
int ax, ay;
|
||||||
|
|
||||||
if (!vidmode_avail || !vid_context_created)
|
if (!vidmode_avail || !vid_context_created)
|
||||||
|
@ -715,6 +716,7 @@ X11_ForceViewPort (void)
|
||||||
XWarpPointer (x_disp, None, x_win, 0, 0, 0, 0, 0, 0);
|
XWarpPointer (x_disp, None, x_win, 0, 0, 0, 0, 0, 0);
|
||||||
}
|
}
|
||||||
XF86VidModeSetViewPort (x_disp, x_screen, ax, ay);
|
XF86VidModeSetViewPort (x_disp, x_screen, ax, ay);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
double
|
double
|
||||||
|
|
Loading…
Reference in a new issue