summaryrefslogtreecommitdiff
path: root/devel/SDL/patches/patch-src_video_quartz_SDL__QuartzVideo.h
diff options
context:
space:
mode:
Diffstat (limited to 'devel/SDL/patches/patch-src_video_quartz_SDL__QuartzVideo.h')
-rw-r--r--devel/SDL/patches/patch-src_video_quartz_SDL__QuartzVideo.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/devel/SDL/patches/patch-src_video_quartz_SDL__QuartzVideo.h b/devel/SDL/patches/patch-src_video_quartz_SDL__QuartzVideo.h
new file mode 100644
index 00000000000..dfd477fe397
--- /dev/null
+++ b/devel/SDL/patches/patch-src_video_quartz_SDL__QuartzVideo.h
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_video_quartz_SDL__QuartzVideo.h,v 1.1 2014/04/14 19:27:46 adam Exp $
+
+Fix building on newer OS X.
+
+--- src/video/quartz/SDL_QuartzVideo.h.orig 2014-04-14 07:38:30.000000000 +0000
++++ src/video/quartz/SDL_QuartzVideo.h
+@@ -91,7 +91,9 @@ typedef struct SDL_PrivateVideoData {
+ CGDirectDisplayID display; /* 0 == main display (only support single display) */
+ const void *mode; /* current mode of the display */
+ const void *save_mode; /* original mode of the display */
++#if (MAC_OS_X_VERSION_MIN_REQUIRED < 1070)
+ CGDirectPaletteRef palette; /* palette of an 8-bit display */
++#endif
+ NSOpenGLContext *gl_context; /* OpenGL rendering context */
+ NSGraphicsContext *nsgfx_context; /* Cocoa graphics context */
+ Uint32 width, height, bpp; /* frequently used data about the display */