src/video/cocoa/SDL_cocoawindow.m
changeset 5361 1d9e27849ed9
parent 5305 75f5ff92ad08
child 5367 71fe70373e58
equal deleted inserted replaced
5360:220d3af9121f 5361:1d9e27849ed9
   723         rect.origin.y = bounds.y;
   723         rect.origin.y = bounds.y;
   724         rect.size.width = bounds.w;
   724         rect.size.width = bounds.w;
   725         rect.size.height = bounds.h;
   725         rect.size.height = bounds.h;
   726         ConvertNSRect(&rect);
   726         ConvertNSRect(&rect);
   727 
   727 
   728         [nswindow setStyleMask:NSBorderlessWindowMask];
   728         if ([nswindow respondsToSelector: @selector(setStyleMask:)]) {
       
   729             [nswindow performSelector: @selector(setStyleMask:) withObject: (id)NSBorderlessWindowMask];
       
   730         }
       
   731         [nswindow setFrameOrigin:rect.origin];
   729         [nswindow setContentSize:rect.size];
   732         [nswindow setContentSize:rect.size];
   730         [nswindow setFrameOrigin:rect.origin];
   733     } else {
   731     } else {
   734         if ([nswindow respondsToSelector: @selector(setStyleMask:)]) {
   732         [nswindow setStyleMask:GetWindowStyle(window)];
   735             [nswindow performSelector: @selector(setStyleMask:) withObject: (id)GetWindowStyle(window)];
       
   736         }
   733 
   737 
   734         // This doesn't seem to do anything...
   738         // This doesn't seem to do anything...
   735         //[nswindow setFrameOrigin:origin];
   739         //[nswindow setFrameOrigin:origin];
   736     }
   740     }
   737 
   741