aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2001-05-23 18:28:10 +0800
committersobomax <sobomax@FreeBSD.org>2001-05-23 18:28:10 +0800
commitb637645867ded0c8d31e1f8e664fae3a4c466b1c (patch)
treef3f4c3d71fa67a7b2efe04e3aa446c9bd2edacc6
parent1ed18ce7632686f43bb176d1f530d882d8e99751 (diff)
downloadfreebsd-ports-graphics-b637645867ded0c8d31e1f8e664fae3a4c466b1c.tar.gz
freebsd-ports-graphics-b637645867ded0c8d31e1f8e664fae3a4c466b1c.tar.zst
freebsd-ports-graphics-b637645867ded0c8d31e1f8e664fae3a4c466b1c.zip
Fix a bug that may cause image corruption during mouse movements.
-rw-r--r--devel/sdl12/Makefile2
-rw-r--r--devel/sdl12/files/patch-src_video_vgl_SDL__vglevents.c14
2 files changed, 7 insertions, 9 deletions
diff --git a/devel/sdl12/Makefile b/devel/sdl12/Makefile
index 0fb244dab37..35a8d0ae3ae 100644
--- a/devel/sdl12/Makefile
+++ b/devel/sdl12/Makefile
@@ -7,7 +7,7 @@
PORTNAME= sdl
PORTVERSION= 1.2.0
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= devel
MASTER_SITES= http://www.libsdl.org/release/ \
http://www.devolution.com/~slouken/SDL/release/
diff --git a/devel/sdl12/files/patch-src_video_vgl_SDL__vglevents.c b/devel/sdl12/files/patch-src_video_vgl_SDL__vglevents.c
index 9caaeae8282..53beea9696c 100644
--- a/devel/sdl12/files/patch-src_video_vgl_SDL__vglevents.c
+++ b/devel/sdl12/files/patch-src_video_vgl_SDL__vglevents.c
@@ -1,9 +1,9 @@
$FreeBSD$
---- src/video/vgl/SDL_vglevents.c.orig Wed Jan 24 00:51:13 2001
-+++ src/video/vgl/SDL_vglevents.c Wed Jan 24 00:51:13 2001
-@@ -0,0 +1,305 @@
+--- src/video/vgl/SDL_vglevents.c.orig Wed May 23 12:15:22 2001
++++ src/video/vgl/SDL_vglevents.c Wed May 23 12:54:08 2001
+@@ -0,0 +1,303 @@
+/*
+ SDL - Simple DirectMedia Layer
+ Copyright (C) 1997, 1998, 1999, 2000 Sam Lantinga
@@ -54,8 +54,8 @@ $FreeBSD$
+static SDL_keysym *TranslateKey(int scancode, SDL_keysym *keysym);
+
+static int posted = 0;
-+static int oldx = 0;
-+static int oldy = 0;
++static int oldx = -1;
++static int oldy = -1;
+static struct mouse_info mouseinfo;
+
+/* Ugh, we have to duplicate the kernel's keysym mapping code...
@@ -102,9 +102,7 @@ $FreeBSD$
+ mouseinfo.operation = MOUSE_GETINFO;
+ if (ioctl(fd, CONS_MOUSECTL, &mouseinfo) != 0)
+ return -1;
-+ oldx = mouseinfo.u.data.x;
-+ oldy = mouseinfo.u.data.y;
-+ SDL_PrivateMouseMotion(0, 0, oldx, oldy);
++
+ return 0;
+}
+