Commit b76f908f authored by Sam Lantinga's avatar Sam Lantinga

Fixed compiling on Mac OS X 10.4

parent f2209fb4
...@@ -725,11 +725,15 @@ Cocoa_SetWindowFullscreen(_THIS, SDL_Window * window, SDL_VideoDisplay * display ...@@ -725,11 +725,15 @@ Cocoa_SetWindowFullscreen(_THIS, SDL_Window * window, SDL_VideoDisplay * display
rect.size.height = bounds.h; rect.size.height = bounds.h;
ConvertNSRect(&rect); ConvertNSRect(&rect);
[nswindow setStyleMask:NSBorderlessWindowMask]; if ([nswindow respondsToSelector: @selector(setStyleMask:)]) {
[nswindow setContentSize:rect.size]; [nswindow performSelector: @selector(setStyleMask:) withObject: (id)NSBorderlessWindowMask];
}
[nswindow setFrameOrigin:rect.origin]; [nswindow setFrameOrigin:rect.origin];
[nswindow setContentSize:rect.size];
} else { } else {
[nswindow setStyleMask:GetWindowStyle(window)]; if ([nswindow respondsToSelector: @selector(setStyleMask:)]) {
[nswindow performSelector: @selector(setStyleMask:) withObject: (id)GetWindowStyle(window)];
}
// This doesn't seem to do anything... // This doesn't seem to do anything...
//[nswindow setFrameOrigin:origin]; //[nswindow setFrameOrigin:origin];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment