From 96a22de4e601875a9ab8d6fcc89da04c0819251c Mon Sep 17 00:00:00 2001 From: nplourde Date: Sun, 3 Jul 2005 14:28:51 +0000 Subject: [PATCH] resize video after keep aspect menu item toggle git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15910 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libvo/vo_macosx.m | 6 ++++-- libvo/vo_quartz.c | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/libvo/vo_macosx.m b/libvo/vo_macosx.m index 69e97f65b3..1ba4f19c2a 100644 --- a/libvo/vo_macosx.m +++ b/libvo/vo_macosx.m @@ -360,7 +360,7 @@ static uint32_t control(uint32_t request, void *data, ...) 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 @@ static uint32_t control(uint32_t request, void *data, ...) 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 @@ static uint32_t control(uint32_t request, void *data, ...) [kKeepAspectCmd setState:NSOnState]; else [kKeepAspectCmd setState:NSOffState]; + + [self reshape]; } if(sender == kPanScanCmd) diff --git a/libvo/vo_quartz.c b/libvo/vo_quartz.c index 4ed3bf842c..282cc46118 100644 --- a/libvo/vo_quartz.c +++ b/libvo/vo_quartz.c @@ -423,6 +423,7 @@ static OSStatus WindowEventHandler(EventHandlerCallRef nextHandler, EventRef eve case kKeepAspectCmd: vo_keepaspect = (!(vo_keepaspect)); CheckMenuItem (aspectMenu, 1, vo_keepaspect); + window_resized(); break; case kAspectOrgCmd: