pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/SDL2 Fix SDL2 rendering on macOS Mojave.
details: https://anonhg.NetBSD.org/pkgsrc/rev/5ce0edacafcb
branches: trunk
changeset: 388377:5ce0edacafcb
user: bsiegert <bsiegert%pkgsrc.org@localhost>
date: Wed Dec 05 10:46:15 2018 +0000
description:
Fix SDL2 rendering on macOS Mojave.
Patch from Jonathan Schleifer in PR pkg/53759.
diffstat:
devel/SDL2/Makefile | 3 +-
devel/SDL2/distinfo | 3 +-
devel/SDL2/patches/patch-src_video_cocoa_SDL__cocoawindow.m | 24 +++++++++++++
3 files changed, 28 insertions(+), 2 deletions(-)
diffs (55 lines):
diff -r 600584b6a4ca -r 5ce0edacafcb devel/SDL2/Makefile
--- a/devel/SDL2/Makefile Wed Dec 05 10:09:09 2018 +0000
+++ b/devel/SDL2/Makefile Wed Dec 05 10:46:15 2018 +0000
@@ -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/
diff -r 600584b6a4ca -r 5ce0edacafcb devel/SDL2/distinfo
--- a/devel/SDL2/distinfo Wed Dec 05 10:09:09 2018 +0000
+++ b/devel/SDL2/distinfo Wed Dec 05 10:46:15 2018 +0000
@@ -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 @@
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
diff -r 600584b6a4ca -r 5ce0edacafcb devel/SDL2/patches/patch-src_video_cocoa_SDL__cocoawindow.m
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/SDL2/patches/patch-src_video_cocoa_SDL__cocoawindow.m Wed Dec 05 10:46:15 2018 +0000
@@ -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