vo_corevideo: Avoid some code duplication.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31809 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2010-07-25 11:53:44 +00:00 committed by Uoti Urpala
parent f4f8c1f7e9
commit 465839a395
1 changed files with 2 additions and 4 deletions

View File

@ -498,10 +498,8 @@ static int control(uint32_t request, void *data)
// 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)];