pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/SDL2
Module Name: pkgsrc
Committed By: bsiegert
Date: Wed Dec 5 10:46:15 UTC 2018
Modified Files:
pkgsrc/devel/SDL2: Makefile distinfo
Added Files:
pkgsrc/devel/SDL2/patches: patch-src_video_cocoa_SDL__cocoawindow.m
Log Message:
Fix SDL2 rendering on macOS Mojave.
Patch from Jonathan Schleifer in PR pkg/53759.
To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 pkgsrc/devel/SDL2/Makefile
cvs rdiff -u -r1.30 -r1.31 pkgsrc/devel/SDL2/distinfo
cvs rdiff -u -r0 -r1.1 \
pkgsrc/devel/SDL2/patches/patch-src_video_cocoa_SDL__cocoawindow.m
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/SDL2/Makefile
diff -u pkgsrc/devel/SDL2/Makefile:1.31 pkgsrc/devel/SDL2/Makefile:1.32
--- pkgsrc/devel/SDL2/Makefile:1.31 Thu Nov 1 21:08:28 2018
+++ pkgsrc/devel/SDL2/Makefile Wed Dec 5 10:46:15 2018
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.31 2018/11/01 21:08:28 adam Exp $
+# $NetBSD: Makefile,v 1.32 2018/12/05 10:46:15 bsiegert Exp $
DISTNAME= SDL2-2.0.9
+PKGREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://www.libsdl.org/release/
Index: pkgsrc/devel/SDL2/distinfo
diff -u pkgsrc/devel/SDL2/distinfo:1.30 pkgsrc/devel/SDL2/distinfo:1.31
--- pkgsrc/devel/SDL2/distinfo:1.30 Thu Nov 1 21:08:28 2018
+++ pkgsrc/devel/SDL2/distinfo Wed Dec 5 10:46:15 2018
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.30 2018/11/01 21:08:28 adam Exp $
+$NetBSD: distinfo,v 1.31 2018/12/05 10:46:15 bsiegert Exp $
SHA1 (SDL2-2.0.9.tar.gz) = 4354c6baad9a48486182656a7506abfb63e9bff5
RMD160 (SDL2-2.0.9.tar.gz) = db2efabf55af41cddf015db0b5213b11ef22b9d0
@@ -7,4 +7,5 @@ Size (SDL2-2.0.9.tar.gz) = 5246942 bytes
SHA1 (patch-configure) = 5637a66f8890586026034f5324829e61c94ac5be
SHA1 (patch-src_audio_netbsd_SDL__netbsdaudio.c) = 7a1f32ea7029f8dc99aecfaead7c68f2fd6cb230
SHA1 (patch-src_joystick_bsd_SDL__sysjoystick.c) = 152b5df76a91c7e7acde126b1464fdd464cf1ba2
+SHA1 (patch-src_video_cocoa_SDL__cocoawindow.m) = 1d5ac9c17ceadf668925734b5cad311e26f2fc58
SHA1 (patch-src_video_x11_SDL__x11opengl.c) = 70b63021c12c52760c0811c673b259844bdfcdc0
Added files:
Index: pkgsrc/devel/SDL2/patches/patch-src_video_cocoa_SDL__cocoawindow.m
diff -u /dev/null pkgsrc/devel/SDL2/patches/patch-src_video_cocoa_SDL__cocoawindow.m:1.1
--- /dev/null Wed Dec 5 10:46:15 2018
+++ pkgsrc/devel/SDL2/patches/patch-src_video_cocoa_SDL__cocoawindow.m Wed Dec 5 10:46:15 2018
@@ -0,0 +1,24 @@
+$NetBSD: patch-src_video_cocoa_SDL__cocoawindow.m,v 1.1 2018/12/05 10:46:15 bsiegert Exp $
+
+# HG changeset patch
+# User Ryan C. Gordon <icculus%icculus.org@localhost>
+# Date 1538007032 14400
+# Node ID 55489adbb75c8eb7c7719a3f9c85a15d06df2f27
+# Parent 21c0605222581aa820dbb19db987c5dc0d497239
+cocoa: Force an OpenGL context update when the window becomes key.
+
+Fixes missing rendering on macOS 10.14 ("Mojave").
+
+Fixes Bugzilla #4272.
+
+--- src/video/cocoa/SDL_cocoawindow.m.orig 2018-10-31 15:07:22.000000000 +0000
++++ src/video/cocoa/SDL_cocoawindow.m
+@@ -632,6 +632,8 @@ SetWindowStyle(SDL_Window * window, NSUI
+ const unsigned int newflags = [NSEvent modifierFlags] & NSEventModifierFlagCapsLock;
+ _data->videodata->modifierFlags = (_data->videodata->modifierFlags & ~NSEventModifierFlagCapsLock) | newflags;
+ SDL_ToggleModState(KMOD_CAPS, newflags != 0);
++
++ ScheduleContextUpdates(_data);
+ }
+
+ - (void)windowDidResignKey:(NSNotification *)aNotification
Home |
Main Index |
Thread Index |
Old Index