Files
ports/games/tenebrae/files/patch-gl_vidlinuxglx.c
T
Stefan Eßer a563c59fb3 Fix build with -fno-common
While here add license (GPLv2+, included in all source files).
2020-09-30 11:33:22 +00:00

20 lines
548 B
C

--- gl_vidlinuxglx.c.orig 2020-09-30 11:25:10 UTC
+++ gl_vidlinuxglx.c
@@ -20,7 +20,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston,
#include <termios.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
-#include <sys/vt.h>
#include <stdarg.h>
#include <stdio.h>
#include <signal.h>
@@ -339,8 +338,6 @@ static void HandleEvents(void)
{
mx += ((int)event.xmotion.x - mwx) * 2;
my += ((int)event.xmotion.y - mwy) * 2;
- mwx = event.xmotion.x;
- mwy = event.xmotion.y;
if (mx || my)
dowarp = true;