changeset 25413:8368ae92c092

screen_frame is only used for fullscreen mode.
author ulion
date Mon, 17 Dec 2007 15:45:37 +0000
parents 058a51cf2f57
children 5c03a9bdf220
files libvo/vo_macosx.m
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_macosx.m	Mon Dec 17 15:29:42 2007 +0000
+++ b/libvo/vo_macosx.m	Mon Dec 17 15:45:37 2007 +0000
@@ -805,11 +805,6 @@
 	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 @@
 		}
 		
 		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];