diff options
Diffstat (limited to 'devel/sdl12/files')
-rw-r--r-- | devel/sdl12/files/patch-src_joystick_bsd_SDL_sysjoystick.c | 27 | ||||
-rw-r--r-- | devel/sdl12/files/patch-src_video_mmx.h | 11 | ||||
-rw-r--r-- | devel/sdl12/files/patch-src_video_x11_SDL_x11events.c | 21 |
3 files changed, 11 insertions, 48 deletions
diff --git a/devel/sdl12/files/patch-src_joystick_bsd_SDL_sysjoystick.c b/devel/sdl12/files/patch-src_joystick_bsd_SDL_sysjoystick.c index 3c5d8b921d21..a8a8a9a7f41c 100644 --- a/devel/sdl12/files/patch-src_joystick_bsd_SDL_sysjoystick.c +++ b/devel/sdl12/files/patch-src_joystick_bsd_SDL_sysjoystick.c @@ -1,16 +1,11 @@ ---- src/joystick/bsd/SDL_sysjoystick.c.orig 2010-02-05 11:17:18.000000000 +0100 -+++ src/joystick/bsd/SDL_sysjoystick.c 2010-02-05 11:18:15.000000000 +0100 -@@ -303,11 +303,12 @@ - strerror(errno)); - goto usberr; - } -+ -+ rep = &hw->inreport; - #if defined(__FREEBSD__) && (__FreeBSD_kernel_version > 800063) - rep->rid = hid_get_report_id(fd); - if (rep->rid < 0) { - #else -- rep = &hw->inreport; - if (ioctl(fd, USB_GET_REPORT_ID, &rep->rid) < 0) { - #endif - rep->rid = -1; /* XXX */ +--- src/joystick/bsd/SDL_sysjoystick.c.orig 2012-01-28 12:07:18.000000000 +0100 ++++ src/joystick/bsd/SDL_sysjoystick.c 2012-01-28 12:08:44.000000000 +0100 +@@ -148,7 +148,7 @@ + static int report_alloc(struct report *, struct report_desc *, int); + static void report_free(struct report *); + +-#if defined(USBHID_UCR_DATA) || defined(__FreeBSD_kernel__) ++#if defined(USBHID_UCR_DATA) || (defined(__FreeBSD_kernel__) && __FreeBSD_kernel_version <= 800063) + #define REP_BUF_DATA(rep) ((rep)->buf->ucr_data) + #elif (defined(__FREEBSD__) && (__FreeBSD_kernel_version > 800063)) + #define REP_BUF_DATA(rep) ((rep)->buf->ugd_data) diff --git a/devel/sdl12/files/patch-src_video_mmx.h b/devel/sdl12/files/patch-src_video_mmx.h deleted file mode 100644 index f55032507381..000000000000 --- a/devel/sdl12/files/patch-src_video_mmx.h +++ /dev/null @@ -1,11 +0,0 @@ ---- src/video/mmx.h 2009-10-12 23:07:15.000000000 +0000 -+++ src/video/mmx.h 2010-04-13 14:25:40.530735004 +0000 -@@ -355,7 +355,7 @@ - - #define mmx_r2m(op, reg, mem) \ - __asm__ __volatile__ (#op " %%" #reg ", %0" \ -- : "=X" (mem) \ -+ : "=m" (mem) \ - : /* nothing */ ) - - #define mmx_r2r(op, regs, regd) \ diff --git a/devel/sdl12/files/patch-src_video_x11_SDL_x11events.c b/devel/sdl12/files/patch-src_video_x11_SDL_x11events.c deleted file mode 100644 index 631c55cf4a4b..000000000000 --- a/devel/sdl12/files/patch-src_video_x11_SDL_x11events.c +++ /dev/null @@ -1,21 +0,0 @@ - - -Patch attached with submission follows: - ---- src/video/x11/SDL_x11events.c.orig 2010-08-29 20:13:12.455316094 +0300 -+++ src/video/x11/SDL_x11events.c 2010-08-29 20:14:46.875763077 +0300 -@@ -441,8 +441,10 @@ - if ( xevent.xcrossing.mode == NotifyUngrab ) - printf("Mode: NotifyUngrab\n"); - #endif -- if ( xevent.xcrossing.detail != NotifyInferior ) { -- if ( this->input_grab == SDL_GRAB_OFF ) { -+ if ( (xevent.xcrossing.mode != NotifyGrab) && -+ (xevent.xcrossing.mode != NotifyUngrab) && -+ (xevent.xcrossing.detail != NotifyInferior) ) { -+ if ( this->input_grab == SDL_GRAB_OFF ) { - posted = SDL_PrivateAppActive(0, SDL_APPMOUSEFOCUS); - } else { - posted = SDL_PrivateMouseMotion(0, 0, - - |