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

Fixed compiling on Mac OS X 10.4

  • Loading branch information
slouken committed Feb 20, 2011
1 parent 7ae31b0 commit dce550690c475a75d133c797e8dc179efc13602f
Showing with 7 additions and 3 deletions.
  1. +7 −3 src/video/cocoa/SDL_cocoawindow.m
@@ -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];

0 comments on commit dce5506

Please sign in to comment.