Skip to content

Instantly share code, notes, and snippets.

@dimitrijer
Created January 27, 2020 09:33
Show Gist options
  • Save dimitrijer/d9fb14ac367b7c4d3e9eb6af577b1d73 to your computer and use it in GitHub Desktop.
Save dimitrijer/d9fb14ac367b7c4d3e9eb6af577b1d73 to your computer and use it in GitHub Desktop.
:100644 100644 7506e0c 0000000 M src/video/quartz/SDL_QuartzVideo.h
diff --git a/src/video/quartz/SDL_QuartzVideo.h b/src/video/quartz/SDL_QuartzVideo.h
index 7506e0c..425896f 100644
--- a/src/video/quartz/SDL_QuartzVideo.h
+++ b/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 */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment