mirror of
https://github.com/mpv-player/mpv
synced 2024-12-28 06:03:45 +01:00
set nsapp and setup cocoa with NSApplicationLoad
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15738 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
643db0cf94
commit
6f6ab3ba68
@ -240,8 +240,9 @@ static uint32_t preinit(const char *arg)
|
||||
}
|
||||
}
|
||||
|
||||
NSApplicationLoad();
|
||||
autoreleasepool = [[NSAutoreleasePool alloc] init];
|
||||
[NSApplication sharedApplication];
|
||||
NSApp = [NSApplication sharedApplication];
|
||||
|
||||
mpGLView = [[MPlayerOpenGLView alloc] initWithFrame:NSMakeRect(0, 0, 0, 0) pixelFormat:[MPlayerOpenGLView defaultPixelFormat]];
|
||||
[mpGLView autorelease];
|
||||
|
Loading…
Reference in New Issue
Block a user