From 2be7a202c82f3ec2ba2e03ce4a8b1c0720c1f8ee Mon Sep 17 00:00:00 2001 From: jbrjake Date: Tue, 10 Feb 2009 20:48:44 +0000 Subject: MacGui: Hides the merange widget on the advanced tab when the motion estimation method is hex or dia. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2134 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- macosx/HBAdvancedController.m | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/macosx/HBAdvancedController.m b/macosx/HBAdvancedController.m index 8f3f96366..c8b26159e 100644 --- a/macosx/HBAdvancedController.m +++ b/macosx/HBAdvancedController.m @@ -468,6 +468,24 @@ [[fX264optMixedRefsSwitch animator] setHidden:NO]; [[fX264optMixedRefsLabel animator] setHidden:NO]; } + + if ( [fX264optMotionEstPopUp indexOfSelectedItem] < 3 ) + { + /* ME-range can only be above 16 if me >= umh + and changing it to < 16 is idiotic so hide it . */ + [[fX264optMERangePopUp animator] setHidden:YES]; + [[fX264optMERangeLabel animator] setHidden:YES]; + if (sender != fX264optMERangePopUp && [fX264optMERangePopUp indexOfSelectedItem] > 0 ) + { + [fX264optMERangePopUp selectItemAtIndex:0]; + [[fX264optMERangePopUp cell] performClick:self]; + } + } + else + { + [[fX264optMERangePopUp animator] setHidden:NO]; + [[fX264optMERangeLabel animator] setHidden:NO]; + } } /** -- cgit v1.2.3