Mercurial > sdl-ios-xcode
diff src/video/quartz/SDL_QuartzWindow.m @ 1658:e49147870aac SDL-1.3
glSDL support
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Mon, 01 May 2006 06:58:33 +0000 |
parents | ef4a796e7f24 |
children | 782fd950bd46 |
line wrap: on
line diff
--- a/src/video/quartz/SDL_QuartzWindow.m Fri Apr 28 16:55:41 2006 +0000 +++ b/src/video/quartz/SDL_QuartzWindow.m Mon May 01 06:58:33 2006 +0000 @@ -55,7 +55,7 @@ /* we override these methods to fix the miniaturize animation/dock icon bug */ - (void)miniaturize:(id)sender { - if (SDL_VideoSurface->flags & SDL_OPENGL) { + if (SDL_VideoSurface->flags & SDL_INTERNALOPENGL) { /* Future: Grab framebuffer and put into NSImage @@ -86,7 +86,7 @@ SDL_VideoDevice *this = (SDL_VideoDevice*)current_video; /* make sure pixels are fully opaque */ - if (! ( SDL_VideoSurface->flags & SDL_OPENGL ) ) + if (! ( SDL_VideoSurface->flags & SDL_INTERNALOPENGL ) ) QZ_SetPortAlphaOpaque (); /* save current visible SDL surface */ @@ -126,7 +126,7 @@ SDL_PrivateResize (newViewFrame.size.width, newViewFrame.size.height); /* If not OpenGL, we have to update the pixels and pitch */ - if ( ! ( SDL_VideoSurface->flags & SDL_OPENGL ) ) { + if ( ! ( SDL_VideoSurface->flags & SDL_INTERNALOPENGL ) ) { CGrafPtr thePort = [ window_view qdPort ]; LockPortBits ( thePort ); @@ -164,7 +164,7 @@ if ( this ) { /* make sure pixels are fully opaque */ - if (! ( SDL_VideoSurface->flags & SDL_OPENGL ) ) + if (! ( SDL_VideoSurface->flags & SDL_INTERNALOPENGL ) ) QZ_SetPortAlphaOpaque (); /* save current visible SDL surface */