Fix compilation on MacOS 10.1
authorSam Lantinga <slouken@libsdl.org>
Sat, 09 Aug 2003 18:12:11 +0000
changeset 674be597a247e20
parent 673 63419da96d13
child 675 73506d26a1f4
Fix compilation on MacOS 10.1
src/video/quartz/SDL_QuartzVideo.m
     1.1 --- a/src/video/quartz/SDL_QuartzVideo.m	Fri Aug 08 21:39:12 2003 +0000
     1.2 +++ b/src/video/quartz/SDL_QuartzVideo.m	Sat Aug 09 18:12:11 2003 +0000
     1.3 @@ -1280,12 +1280,14 @@
     1.4      CGPaletteRelease (palette);
     1.5  }
     1.6  
     1.7 +#if 0 /* Not used (apparently, it's really slow) */
     1.8  static int  QZ_FillHWRect (_THIS, SDL_Surface *dst, SDL_Rect *rect, Uint32 color) {
     1.9  
    1.10      CGSDisplayHWFill (display_id, rect->x, rect->y, rect->w, rect->h, color);
    1.11  
    1.12      return 0;
    1.13  }
    1.14 +#endif
    1.15  
    1.16  static int  QZ_LockHWSurface(_THIS, SDL_Surface *surface) {
    1.17  
    1.18 @@ -1440,6 +1442,7 @@
    1.19          attr[i++] = this->gl_config.stencil_size;
    1.20      }
    1.21  
    1.22 +#if NSOPENGL_CURRENT_VERSION > 1  /* What version should this be? */
    1.23      if ( this->gl_config.multisamplebuffers != 0 ) {
    1.24          attr[i++] = NSOpenGLPFASampleBuffers;
    1.25          attr[i++] = this->gl_config.multisamplebuffers;
    1.26 @@ -1449,6 +1452,7 @@
    1.27          attr[i++] = NSOpenGLPFASamples;
    1.28          attr[i++] = this->gl_config.multisamplesamples;
    1.29      }
    1.30 +#endif
    1.31  
    1.32      attr[i++] = NSOpenGLPFAScreenMask;
    1.33      attr[i++] = CGDisplayIDToOpenGLDisplayMask (display_id);