summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjbrjake <[email protected]>2009-02-10 20:48:44 +0000
committerjbrjake <[email protected]>2009-02-10 20:48:44 +0000
commit2be7a202c82f3ec2ba2e03ce4a8b1c0720c1f8ee (patch)
tree69baab269935d092d831195ac90d67cd92d91187
parent632a541ad7019938b92ee55b03b5b95b39fe5950 (diff)
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
-rw-r--r--macosx/HBAdvancedController.m18
1 files changed, 18 insertions, 0 deletions
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];
+ }
}
/**