summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsr55 <[email protected]>2009-09-30 14:26:01 +0000
committersr55 <[email protected]>2009-09-30 14:26:01 +0000
commit7a88c8b6b3a1ba9f5ca08d1c9b235b0dfd2d1d1d (patch)
tree0f6487293905c4ab2ecce712e7d0aee00a677026
parent61bef2b28ed7caa4c5869c0bc5b042136bc82c1d (diff)
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
-rw-r--r--win/C#/Controls/PictureSettings.cs3
-rw-r--r--win/C#/Functions/QueryGenerator.cs8
2 files changed, 10 insertions, 1 deletions
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 ";