show window only after texture creation (look better).

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15658 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nplourde 2005-06-05 20:21:34 +00:00
parent ac692cffe0
commit 3d7173df87
1 changed files with 4 additions and 3 deletions

View File

@ -302,9 +302,7 @@ static uint32_t control(uint32_t request, void *data, ...)
[window setInitialFirstResponder:self];
[window setAcceptsMouseMovedEvents:YES];
[window setTitle:@"MPlayer - The Movie Player"];
[window center];
[window makeKeyAndOrderFront:self];
[window center];
[self setOpenGLContext:glContext];
[glContext setValues:&swapInterval forParameter:NSOpenGLCPSwapInterval];
@ -323,6 +321,9 @@ static uint32_t control(uint32_t request, void *data, ...)
if(error != kCVReturnSuccess)
mp_msg(MSGT_VO, MSGL_ERR,"Failed to create OpenGL texture(%d)\n", error);
//show window
[window makeKeyAndOrderFront:self];
isFullscreen = 0;
}