[MPlayer-cvslog] r36320 - trunk/libvo/osx_objc_common.m

reimar subversion at mplayerhq.hu
Sun Jun 9 23:34:24 CEST 2013


Author: reimar
Date: Sun Jun  9 23:34:24 2013
New Revision: 36320

Log:
OpenGL OSX: Do not set up aspect etc. for a hidden window.

Modified:
   trunk/libvo/osx_objc_common.m

Modified: trunk/libvo/osx_objc_common.m
==============================================================================
--- trunk/libvo/osx_objc_common.m	Sun Jun  9 23:26:09 2013	(r36319)
+++ trunk/libvo/osx_objc_common.m	Sun Jun  9 23:34:24 2013	(r36320)
@@ -185,6 +185,8 @@ void vo_osx_swap_buffers(void)
 
 - (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 @@ void vo_osx_swap_buffers(void)
 
 	[self ontop];
 
-	if (!(flags & VOFLAG_HIDDEN))
-		//show window
-		[window makeKeyAndOrderFront:self];
+	//show window
+	[window makeKeyAndOrderFront:self];
 }
 
 - (void) drawRect: (NSRect *) bounds


More information about the MPlayer-cvslog mailing list