changeset 36224:c528b4f82e8b

OpenGL OSX: Do not set up aspect etc. for a hidden window.
author reimar
date Sun, 09 Jun 2013 21:34:24 +0000
parents 95be7d60ca9b
children b67bdb9304f8
files libvo/osx_objc_common.m
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/osx_objc_common.m	Sun Jun 09 21:26:09 2013 +0000
+++ b/libvo/osx_objc_common.m	Sun Jun 09 21:34:24 2013 +0000
@@ -185,6 +185,8 @@
 
 - (void) config:(uint32_t)width:(uint32_t)height:(uint32_t)flags
 {
+	if (flags & VOFLAG_HIDDEN)
+		return;
 	config_movie_aspect((float)width/height);
 
 	vo_dwidth  = width  *= self->winSizeMult;
@@ -212,9 +214,8 @@
 
 	[self ontop];
 
-	if (!(flags & VOFLAG_HIDDEN))
-		//show window
-		[window makeKeyAndOrderFront:self];
+	//show window
+	[window makeKeyAndOrderFront:self];
 }
 
 - (void) drawRect: (NSRect *) bounds