[MPlayer-cvslog] CVS: main/libvo vo_macosx.m, 1.26, 1.27 vo_quartz.c, 1.53, 1.54

Nicolas Plourde CVS syncmail at mplayerhq.hu
Sun Jul 3 16:28:53 CEST 2005


CVS change done by Nicolas Plourde CVS

Update of /cvsroot/mplayer/main/libvo
In directory mail:/var2/tmp/cvs-serv12917/libvo

Modified Files:
	vo_macosx.m vo_quartz.c 
Log Message:
resize video after keep aspect menu item toggle

Index: vo_macosx.m
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_macosx.m,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- vo_macosx.m	3 Jul 2005 12:24:48 -0000	1.26
+++ vo_macosx.m	3 Jul 2005 14:28:51 -0000	1.27
@@ -360,7 +360,7 @@
 	kDoubleScreenCmd = menuItem;
 	menuItem = [[NSMenuItem alloc] initWithTitle:@"Full Size" action:@selector(menuAction:) keyEquivalent:@"f"]; [menu addItem:menuItem];
 	kFullScreenCmd = menuItem;
-	//menuItem = (NSMenuItem *)[NSMenuItem separatorItem]; [menu addItem:menuItem];
+	menuItem = (NSMenuItem *)[NSMenuItem separatorItem]; [menu addItem:menuItem];
 	
 		NSMenu	*aspectMenu;
 		aspectMenu = [[NSMenu alloc] initWithTitle:@"Aspect Ratio"];
@@ -370,7 +370,7 @@
 		menuItem = [[NSMenuItem alloc] initWithTitle:@"Pan-Scan" action:@selector(menuAction:) keyEquivalent:@""]; [aspectMenu addItem:menuItem];
 		if(vo_panscan) [menuItem setState:NSOnState];
 		kPanScanCmd = menuItem;
-		menuItem = (NSMenuItem *)[NSMenuItem separatorItem]; [menu addItem:menuItem];
+		menuItem = (NSMenuItem *)[NSMenuItem separatorItem]; [aspectMenu addItem:menuItem];
 		menuItem = [[NSMenuItem alloc] initWithTitle:@"Original" action:@selector(menuAction:) keyEquivalent:@""]; [aspectMenu addItem:menuItem];
 		kAspectOrgCmd = menuItem;
 		menuItem = [[NSMenuItem alloc] initWithTitle:@"4:3" action:@selector(menuAction:) keyEquivalent:@""]; [aspectMenu addItem:menuItem];
@@ -468,6 +468,8 @@
 			[kKeepAspectCmd setState:NSOnState];
 		else
 			[kKeepAspectCmd setState:NSOffState];
+			
+		[self reshape];
 	}
 	
 	if(sender == kPanScanCmd)

Index: vo_quartz.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_quartz.c,v
retrieving revision 1.53
retrieving revision 1.54
diff -u -r1.53 -r1.54
--- vo_quartz.c	3 Jul 2005 12:24:48 -0000	1.53
+++ vo_quartz.c	3 Jul 2005 14:28:51 -0000	1.54
@@ -423,6 +423,7 @@
 			case kKeepAspectCmd:
 				vo_keepaspect = (!(vo_keepaspect));
 				CheckMenuItem (aspectMenu, 1, vo_keepaspect);
+				window_resized();
 				break;
 				
 			case kAspectOrgCmd:




More information about the MPlayer-cvslog mailing list