changeset 674:be597a247e20

Fix compilation on MacOS 10.1
author Sam Lantinga <slouken@libsdl.org>
date Sat, 09 Aug 2003 18:12:11 +0000
parents 63419da96d13
children 73506d26a1f4
files src/video/quartz/SDL_QuartzVideo.m
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/quartz/SDL_QuartzVideo.m	Fri Aug 08 21:39:12 2003 +0000
+++ b/src/video/quartz/SDL_QuartzVideo.m	Sat Aug 09 18:12:11 2003 +0000
@@ -1280,12 +1280,14 @@
     CGPaletteRelease (palette);
 }
 
+#if 0 /* Not used (apparently, it's really slow) */
 static int  QZ_FillHWRect (_THIS, SDL_Surface *dst, SDL_Rect *rect, Uint32 color) {
 
     CGSDisplayHWFill (display_id, rect->x, rect->y, rect->w, rect->h, color);
 
     return 0;
 }
+#endif
 
 static int  QZ_LockHWSurface(_THIS, SDL_Surface *surface) {
 
@@ -1440,6 +1442,7 @@
         attr[i++] = this->gl_config.stencil_size;
     }
 
+#if NSOPENGL_CURRENT_VERSION > 1  /* What version should this be? */
     if ( this->gl_config.multisamplebuffers != 0 ) {
         attr[i++] = NSOpenGLPFASampleBuffers;
         attr[i++] = this->gl_config.multisamplebuffers;
@@ -1449,6 +1452,7 @@
         attr[i++] = NSOpenGLPFASamples;
         attr[i++] = this->gl_config.multisamplesamples;
     }
+#endif
 
     attr[i++] = NSOpenGLPFAScreenMask;
     attr[i++] = CGDisplayIDToOpenGLDisplayMask (display_id);