Mercurial > mplayer.hg
changeset 15737:0c3939433cef
set nsapp and setup cocoa with NSApplicationLoad
author | nplourde |
---|---|
date | Thu, 16 Jun 2005 16:41:44 +0000 |
parents | a51c5bc51272 |
children | a0b807d489bc |
files | libvo/vo_macosx.m |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_macosx.m Thu Jun 16 16:14:05 2005 +0000 +++ b/libvo/vo_macosx.m Thu Jun 16 16:41:44 2005 +0000 @@ -240,8 +240,9 @@ } } + NSApplicationLoad(); autoreleasepool = [[NSAutoreleasePool alloc] init]; - [NSApplication sharedApplication]; + NSApp = [NSApplication sharedApplication]; mpGLView = [[MPlayerOpenGLView alloc] initWithFrame:NSMakeRect(0, 0, 0, 0) pixelFormat:[MPlayerOpenGLView defaultPixelFormat]]; [mpGLView autorelease];