From 1c154cd853ae8c0c6f42b3044c57bf756ad9111d Mon Sep 17 00:00:00 2001
From: ulion <ulion@b3059339-0415-0410-9bf9-f77b7e298cf2>
Date: Mon, 17 Dec 2007 15:45:37 +0000
Subject: [PATCH] screen_frame is only used for fullscreen mode.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25441 b3059339-0415-0410-9bf9-f77b7e298cf2
---
 libvo/vo_macosx.m | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/libvo/vo_macosx.m b/libvo/vo_macosx.m
index 7c9fe9292b..d251547b36 100644
--- a/libvo/vo_macosx.m
+++ b/libvo/vo_macosx.m
@@ -805,11 +805,6 @@ static int control(uint32_t request, void *data, ...)
 	static NSRect old_frame;
 	static NSRect old_view_frame;
 	
-	if(screen_force)
-		screen_frame = [screen_handle frame];
-	else
-		screen_frame = [[window screen] frame];
-
 	panscan_calc();
 			
 	//go fullscreen
@@ -823,6 +818,11 @@ static int control(uint32_t request, void *data, ...)
 		}
 		
 		old_frame = [window frame];	//save main window size & position
+		if(screen_force)
+			screen_frame = [screen_handle frame];
+		else
+			screen_frame = [[window screen] frame];
+
 		[window setFrame:screen_frame display:YES animate:animate]; //zoom-in window with nice useless sfx
 		old_view_frame = [self bounds];