comparison src/video/quartz/SDL_QuartzVideo.m @ 674:be597a247e20

Fix compilation on MacOS 10.1
author Sam Lantinga <slouken@libsdl.org>
date Sat, 09 Aug 2003 18:12:11 +0000
parents f91ded895274
children 5d2f027b3349
comparison
equal deleted inserted replaced
673:63419da96d13 674:be597a247e20
1278 1278
1279 QZ_UnsetVideoMode (this); 1279 QZ_UnsetVideoMode (this);
1280 CGPaletteRelease (palette); 1280 CGPaletteRelease (palette);
1281 } 1281 }
1282 1282
1283 #if 0 /* Not used (apparently, it's really slow) */
1283 static int QZ_FillHWRect (_THIS, SDL_Surface *dst, SDL_Rect *rect, Uint32 color) { 1284 static int QZ_FillHWRect (_THIS, SDL_Surface *dst, SDL_Rect *rect, Uint32 color) {
1284 1285
1285 CGSDisplayHWFill (display_id, rect->x, rect->y, rect->w, rect->h, color); 1286 CGSDisplayHWFill (display_id, rect->x, rect->y, rect->w, rect->h, color);
1286 1287
1287 return 0; 1288 return 0;
1288 } 1289 }
1290 #endif
1289 1291
1290 static int QZ_LockHWSurface(_THIS, SDL_Surface *surface) { 1292 static int QZ_LockHWSurface(_THIS, SDL_Surface *surface) {
1291 1293
1292 return 1; 1294 return 1;
1293 } 1295 }
1438 if ( this->gl_config.stencil_size != 0 ) { 1440 if ( this->gl_config.stencil_size != 0 ) {
1439 attr[i++] = NSOpenGLPFAStencilSize; 1441 attr[i++] = NSOpenGLPFAStencilSize;
1440 attr[i++] = this->gl_config.stencil_size; 1442 attr[i++] = this->gl_config.stencil_size;
1441 } 1443 }
1442 1444
1445 #if NSOPENGL_CURRENT_VERSION > 1 /* What version should this be? */
1443 if ( this->gl_config.multisamplebuffers != 0 ) { 1446 if ( this->gl_config.multisamplebuffers != 0 ) {
1444 attr[i++] = NSOpenGLPFASampleBuffers; 1447 attr[i++] = NSOpenGLPFASampleBuffers;
1445 attr[i++] = this->gl_config.multisamplebuffers; 1448 attr[i++] = this->gl_config.multisamplebuffers;
1446 } 1449 }
1447 1450
1448 if ( this->gl_config.multisamplesamples != 0 ) { 1451 if ( this->gl_config.multisamplesamples != 0 ) {
1449 attr[i++] = NSOpenGLPFASamples; 1452 attr[i++] = NSOpenGLPFASamples;
1450 attr[i++] = this->gl_config.multisamplesamples; 1453 attr[i++] = this->gl_config.multisamplesamples;
1451 } 1454 }
1455 #endif
1452 1456
1453 attr[i++] = NSOpenGLPFAScreenMask; 1457 attr[i++] = NSOpenGLPFAScreenMask;
1454 attr[i++] = CGDisplayIDToOpenGLDisplayMask (display_id); 1458 attr[i++] = CGDisplayIDToOpenGLDisplayMask (display_id);
1455 attr[i] = 0; 1459 attr[i] = 0;
1456 1460