Commit 165076c9 authored by Sam Lantinga's avatar Sam Lantinga

We can defer window creation.

Added documentation for why we need an SDLView
parent f3564c3a
...@@ -436,7 +436,9 @@ static __inline__ void ConvertNSRect(NSRect *r) ...@@ -436,7 +436,9 @@ static __inline__ void ConvertNSRect(NSRect *r)
} }
@end @end
@interface SDLView : NSView { } @interface SDLView : NSView
/* The default implementation doesn't pass rightMouseDown to responder chain */
- (void)rightMouseDown:(NSEvent *)theEvent;
@end @end
@implementation SDLView @implementation SDLView
...@@ -598,7 +600,7 @@ Cocoa_CreateWindow(_THIS, SDL_Window * window) ...@@ -598,7 +600,7 @@ Cocoa_CreateWindow(_THIS, SDL_Window * window)
rect.origin.y -= screenRect.origin.y; rect.origin.y -= screenRect.origin.y;
} }
} }
nswindow = [[SDLWindow alloc] initWithContentRect:rect styleMask:style backing:NSBackingStoreBuffered defer:FALSE screen:screen]; nswindow = [[SDLWindow alloc] initWithContentRect:rect styleMask:style backing:NSBackingStoreBuffered defer:YES screen:screen];
[pool release]; [pool release];
......
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