Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Fixed fullscreen modes with Cocoa video driver.

  • Loading branch information
slouken committed Aug 6, 2006
1 parent dcab033 commit 905c987428e224947f66b30e94094069386e21a7

File 2 of 3 in 905c987

@@ -247,11 +247,6 @@ - (CGLContextObj)CGLContextObj;

/* End Wisdom from Apple Engineer section. --ryan. */

/* FIXME: should this go somewhere else? */
if (window->flags & SDL_WINDOW_FULLSCREEN) {
[nscontext setFullScreen];
}

[pool release];
return nscontext;
}
@@ -267,8 +262,12 @@ - (CGLContextObj)CGLContextObj;
SDL_WindowData *windowdata = (SDL_WindowData *)window->driverdata;
NSOpenGLContext *nscontext = (NSOpenGLContext *)context;

[nscontext setView:[windowdata->window contentView]];
[nscontext update];
if (window->flags & SDL_WINDOW_FULLSCREEN) {
[nscontext setFullScreen];
} else {
[nscontext setView:[windowdata->window contentView]];
[nscontext update];
}
[nscontext makeCurrentContext];
} else {
[NSOpenGLContext clearCurrentContext];

0 comments on commit 905c987

Please sign in to comment.