# HG changeset patch # User reimar # Date 1370813664 0 # Node ID c528b4f82e8b3901e05f1bfe95159309d155377f # Parent 95be7d60ca9bbb1677abe81d3a4e6b74c2ef4dbe OpenGL OSX: Do not set up aspect etc. for a hidden window. diff -r 95be7d60ca9b -r c528b4f82e8b libvo/osx_objc_common.m --- 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