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
rect.size.height = bounds.h;
ConvertNSRect(&rect);
[nswindow setStyleMask:NSBorderlessWindowMask];
[nswindow setContentSize:rect.size];
if ([nswindow respondsToSelector: @selector(setStyleMask:)]) {
[nswindow performSelector: @selector(setStyleMask:) withObject: (id)NSBorderlessWindowMask];
}
[nswindow setFrameOrigin:rect.origin];
[nswindow setContentSize:rect.size];
} 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...
//[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