Skip to content

Instantly share code, notes, and snippets.

@fanzeyi
Last active January 1, 2016 22:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fanzeyi/8210213 to your computer and use it in GitHub Desktop.
Save fanzeyi/8210213 to your computer and use it in GitHub Desktop.
SDL 1.2.15 Patch for 10.9
--- ./src/video/quartz/SDL_QuartzVideo.h 2014-01-02 02:36:48.000000000 +0800
+++ ./src/video/quartz/SDL_QuartzVideo.h 2014-01-02 02:36:50.000000000 +0800
@@ -91,7 +91,9 @@
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 */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment