Warp the cursor out of the way for 3dfx users. Hopefully this does the job.

This commit is contained in:
Bill Currie 2000-07-27 04:39:01 +00:00
parent 4f0e4c858a
commit 858a0e5db2
2 changed files with 3 additions and 3 deletions

View file

@ -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);

View file

@ -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,