1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/games/kmquake2/files/patch-unix__gl_glx.c
Alejandro Pulver cd86472da9 - Add CLIENT and GAME options.
- Fix building of the dedicated server.
- IGNORE if no executables selected.
- Miscelaneous fixes.
2006-06-08 19:00:43 +00:00

31 lines
825 B
C

--- ./unix/gl_glx.c.orig Mon Apr 3 14:40:42 2006
+++ ./unix/gl_glx.c Thu Jun 8 13:39:12 2006
@@ -379,15 +379,11 @@
}
else
{
- if( !event.xmotion.send_event ) {
- mx += event.xmotion.x - p_mouse_x;
- my += event.xmotion.y - p_mouse_y;
+ mx += (event.xmotion.x - mwx) * 2;
+ my += (event.xmotion.y - mwy) * 2;
- if( abs( mwx - event.xmotion.x ) > mwx / 2 || abs( mwy - event.xmotion.y ) > mwy / 2 )
+ if (mwx || mwy)
dowarp = true;
- }
- p_mouse_x = event.xmotion.x;
- p_mouse_y = event.xmotion.y;
}
}
break;
@@ -451,8 +447,6 @@
if (dowarp)
{
/* move the mouse to the window center again */
- p_mouse_x = mwx;
- p_mouse_y = mwy;
XWarpPointer (dpy, None, win, 0, 0, 0, 0, mwx, mwy);
}
}