Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed compiling on Mac OS X 10.4
  • Loading branch information
slouken committed Feb 20, 2011
1 parent 7ae31b0 commit dce5506
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/video/cocoa/SDL_cocoawindow.m
Expand Up @@ -725,11 +725,15 @@ - (void)rightMouseDown:(NSEvent *)theEvent
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];
Expand Down

0 comments on commit dce5506

Please sign in to comment.