From 858a0e5db2ba19598330cd29f3ebbfd738e6bc72 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Thu, 27 Jul 2000 04:39:01 +0000 Subject: [PATCH] Warp the cursor out of the way for 3dfx users. Hopefully this does the job. --- source/in_x11.c | 3 --- source/vid_glx.c | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/in_x11.c b/source/in_x11.c index 4bcfa7a..62af526 100644 --- a/source/in_x11.c +++ b/source/in_x11.c @@ -441,9 +441,6 @@ IN_Init(void) XF86DGADirectVideo(x_disp, DefaultScreen(x_disp), XF86DGADirectMouse|XF86DGADirectKeyb); - //XWarpPointer(x_disp, None, x_win, 0, 0, 0, 0, - // vid.width+2, vid.height+2); - XGrabPointer (x_disp, x_win, True, MOUSE_MASK, GrabModeAsync, GrabModeAsync, x_win, None, CurrentTime); diff --git a/source/vid_glx.c b/source/vid_glx.c index bd03bd4..8643440 100644 --- a/source/vid_glx.c +++ b/source/vid_glx.c @@ -667,6 +667,9 @@ void VID_Init(unsigned char *palette) CreateNullCursor(x_disp, x_win); XDefineCursor(x_disp, x_win, nullcursor); + XWarpPointer(x_disp, None, x_win, 0, 0, 0, 0, + vid.width+2, vid.height+2); + #ifdef HAVE_VIDMODE if (hasvidmode && vid_fullscreen->value) { XGrabKeyboard(x_disp, x_win, 1, GrabModeAsync, GrabModeAsync,