src/video/cocoa/SDL_cocoawindow.m
changeset 5379 78c071fe4c37
parent 5378 738a96883fa6
child 5380 2de85077eb0b
equal deleted inserted replaced
5378:738a96883fa6 5379:78c071fe4c37
   434 {
   434 {
   435     return YES;
   435     return YES;
   436 }
   436 }
   437 @end
   437 @end
   438 
   438 
   439 @interface SDLView : NSView { }
   439 @interface SDLView : NSView
       
   440 /* The default implementation doesn't pass rightMouseDown to responder chain */
       
   441 - (void)rightMouseDown:(NSEvent *)theEvent;
   440 @end
   442 @end
   441 
   443 
   442 @implementation SDLView
   444 @implementation SDLView
   443 - (void)rightMouseDown:(NSEvent *)theEvent
   445 - (void)rightMouseDown:(NSEvent *)theEvent
   444 {
   446 {
   596             screen = candidate;
   598             screen = candidate;
   597             rect.origin.x -= screenRect.origin.x;
   599             rect.origin.x -= screenRect.origin.x;
   598             rect.origin.y -= screenRect.origin.y;
   600             rect.origin.y -= screenRect.origin.y;
   599         }
   601         }
   600     }
   602     }
   601     nswindow = [[SDLWindow alloc] initWithContentRect:rect styleMask:style backing:NSBackingStoreBuffered defer:FALSE screen:screen];
   603     nswindow = [[SDLWindow alloc] initWithContentRect:rect styleMask:style backing:NSBackingStoreBuffered defer:YES screen:screen];
   602 
   604 
   603     [pool release];
   605     [pool release];
   604 
   606 
   605     if (SetupWindowData(_this, window, nswindow, SDL_TRUE) < 0) {
   607     if (SetupWindowData(_this, window, nswindow, SDL_TRUE) < 0) {
   606         [nswindow release];
   608         [nswindow release];