changeset 15657:e695fcd731e0

show window only after texture creation (look better).
author nplourde
date Sun, 05 Jun 2005 20:21:34 +0000
parents 845154c7481f
children 68990832f22b
files libvo/vo_macosx.m
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_macosx.m	Sun Jun 05 20:16:08 2005 +0000
+++ b/libvo/vo_macosx.m	Sun Jun 05 20:21:34 2005 +0000
@@ -302,9 +302,7 @@
 	[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 @@
 	if(error != kCVReturnSuccess)
 		mp_msg(MSGT_VO, MSGL_ERR,"Failed to create OpenGL texture(%d)\n", error);
 	
+	//show window
+	[window makeKeyAndOrderFront:self];
+	
 	isFullscreen = 0;
 }