[MPlayer-cvslog] r25441 - trunk/libvo/vo_macosx.m

ulion subversion at mplayerhq.hu
Mon Dec 17 16:45:38 CET 2007


Author: ulion
Date: Mon Dec 17 16:45:37 2007
New Revision: 25441

Log:
screen_frame is only used for fullscreen mode.


Modified:
   trunk/libvo/vo_macosx.m

Modified: trunk/libvo/vo_macosx.m
==============================================================================
--- trunk/libvo/vo_macosx.m	(original)
+++ trunk/libvo/vo_macosx.m	Mon Dec 17 16:45:37 2007
@@ -805,11 +805,6 @@ static int control(uint32_t request, voi
 	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, voi
 		}
 		
 		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];
 		



More information about the MPlayer-cvslog mailing list