Mercurial > mplayer.hg
changeset 15909:b1bc923b38fe
resize video after keep aspect menu item toggle
author | nplourde |
---|---|
date | Sun, 03 Jul 2005 14:28:51 +0000 |
parents | 57f1d0fb242f |
children | 58cf91c7ccc8 |
files | libvo/vo_macosx.m libvo/vo_quartz.c |
diffstat | 2 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_macosx.m Sun Jul 03 13:31:24 2005 +0000 +++ b/libvo/vo_macosx.m Sun Jul 03 14:28:51 2005 +0000 @@ -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)