From 7a88c8b6b3a1ba9f5ca08d1c9b235b0dfd2d1d1d Mon Sep 17 00:00:00 2001 From: sr55 Date: Wed, 30 Sep 2009 14:26:01 +0000 Subject: WinGui: - Fix query generator issues with custom anamorphic. (Set display width / pix aspect correctly). Also set modulus correctly. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2853 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/C#/Controls/PictureSettings.cs | 3 +++ win/C#/Functions/QueryGenerator.cs | 8 +++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/win/C#/Controls/PictureSettings.cs b/win/C#/Controls/PictureSettings.cs index bf43b6465..4f87c33f9 100644 --- a/win/C#/Controls/PictureSettings.cs +++ b/win/C#/Controls/PictureSettings.cs @@ -340,7 +340,10 @@ namespace Handbrake.Controls labelDisplaySize.Visible = true; check_KeepAR.Checked = true; + updownParWidth.Enabled = !check_KeepAR.Checked; + updownParHeight.Enabled = !check_KeepAR.Checked; break; + } labelDisplaySize.Text = CalculateAnamorphicSizes().Width + "x" + CalculateAnamorphicSizes().Height; diff --git a/win/C#/Functions/QueryGenerator.cs b/win/C#/Functions/QueryGenerator.cs index 15dfc0f70..ed80bdaf6 100644 --- a/win/C#/Functions/QueryGenerator.cs +++ b/win/C#/Functions/QueryGenerator.cs @@ -149,7 +149,13 @@ namespace Handbrake.Functions break; case 3: query += " --custom-anamorphic "; - query += " --display-width " + mainWindow.PictureSettings.updownDisplayWidth.Text + " "; + + if (mainWindow.PictureSettings.drp_modulus.SelectedIndex != 0) + query += " --modulus " + mainWindow.PictureSettings.drp_modulus.SelectedItem; + + if (mainWindow.PictureSettings.check_KeepAR.Checked) + query += " --display-width " + mainWindow.PictureSettings.updownDisplayWidth.Text + " "; + if (mainWindow.PictureSettings.check_KeepAR.Checked) query += " --keep-display-aspect "; -- cgit v1.2.3