# HG changeset patch # User reimar # Date 1280058824 0 # Node ID f3315500970f40012a8cb7c1327c4b9ec3e5c430 # Parent 8c22970585a7c2725b13671a305f48a4c1ba4f10 Avoid some code duplication. diff -r 8c22970585a7 -r f3315500970f libvo/vo_corevideo.m --- a/libvo/vo_corevideo.m Sun Jul 25 11:49:36 2010 +0000 +++ b/libvo/vo_corevideo.m Sun Jul 25 11:53:44 2010 +0000 @@ -498,10 +498,8 @@ // Use visibleFrame to position the window taking the menu bar and dock into account. // Also flip vo_dy since the screen origin is in the bottom left on OSX. - if (screen_id < 0) - visibleFrame = [[[mpGLView window] screen] visibleFrame]; - else - visibleFrame = [[[NSScreen screens] objectAtIndex:screen_id] visibleFrame]; + update_screen_info(); + visibleFrame = [screen_handle visibleFrame]; [window setFrameTopLeftPoint:NSMakePoint( visibleFrame.origin.x + vo_dx, visibleFrame.origin.y + visibleFrame.size.height - vo_dy)];