Skip to content
Permalink
Browse files

Fixed bug 2085 - SDL 1.2.15 fails to build on OSX 10.9 Mavericks ? de…

…precated CGDirectPaletteRef was removed

Adrian Petrescu

The CGDirectPaletteRef struct no longer exists in 10.9 (it had been previously deprecated) which prevents SDL 1.2.15 from building with the following error:

    In file included from ./src/video/quartz/SDL_QuartzEvents.m:24:
    ./src/video/quartz/SDL_QuartzVideo.h:94:5: error: unknown type name 'CGDirectPaletteRef'
        CGDirectPaletteRef palette;            /* palette of an 8-bit display */
        ^

I was able to make everything compile just by removing that item from the struct, nothing else in libsdl seems to depend on it, but I have *no* idea if this is a valid fix, knowing next to nothing about SDL.
  • Loading branch information
slouken committed Sep 5, 2013
1 parent ca52ed5 commit 19039324be71738d8990e91b9ba341b2ea068445
Showing with 0 additions and 1 deletion.
  1. +0 −1 src/video/quartz/SDL_QuartzVideo.h
@@ -91,7 +91,6 @@ 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 */
CGDirectPaletteRef palette; /* palette of an 8-bit display */
NSOpenGLContext *gl_context; /* OpenGL rendering context */
NSGraphicsContext *nsgfx_context; /* Cocoa graphics context */
Uint32 width, height, bpp; /* frequently used data about the display */

0 comments on commit 1903932

Please sign in to comment.