[MPlayer-cvslog] r31809 - trunk/libvo/vo_corevideo.m
reimar
subversion at mplayerhq.hu
Sun Jul 25 13:53:44 CEST 2010
Author: reimar
Date: Sun Jul 25 13:53:44 2010
New Revision: 31809
Log:
Avoid some code duplication.
Modified:
trunk/libvo/vo_corevideo.m
Modified: trunk/libvo/vo_corevideo.m
==============================================================================
--- trunk/libvo/vo_corevideo.m Sun Jul 25 13:49:36 2010 (r31808)
+++ trunk/libvo/vo_corevideo.m Sun Jul 25 13:53:44 2010 (r31809)
@@ -498,10 +498,8 @@ static int control(uint32_t request, voi
// 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)];
More information about the MPlayer-cvslog
mailing list