From 757a0f690caf1bd3398a3e164a69936fff28c831 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Sat, 6 Oct 2001 22:57:54 +0000 Subject: [PATCH] fix a missing #ifdef HAVE_VIDMODE --- libs/video/targets/context_x11.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libs/video/targets/context_x11.c b/libs/video/targets/context_x11.c index b04bdd049..85ccfa834 100644 --- a/libs/video/targets/context_x11.c +++ b/libs/video/targets/context_x11.c @@ -703,6 +703,7 @@ X11_GetWindowCoords (int *ax, int *ay) void X11_ForceViewPort (void) { +#ifdef HAVE_VIDMODE int ax, ay; 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); } XF86VidModeSetViewPort (x_disp, x_screen, ax, ay); +#endif } double