diff options
author | sr55 <[email protected]> | 2009-07-10 19:33:14 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2009-07-10 19:33:14 +0000 |
commit | 494c39a4c0f0f333dd61b573e54f328d31158044 (patch) | |
tree | 45ca07bc85eb3d5046bc694be4590c865a2e4eb1 /win | |
parent | c013dff0ee39c978a70089028ef314e46dfb8ca3 (diff) |
WinGui:
- Quick Fix to the QueryGenerator.cs - was misbehaving with anamorphic options and width/height
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2682 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win')
-rw-r--r-- | win/C#/Functions/QueryGenerator.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/win/C#/Functions/QueryGenerator.cs b/win/C#/Functions/QueryGenerator.cs index f0d19924b..bb80c1e74 100644 --- a/win/C#/Functions/QueryGenerator.cs +++ b/win/C#/Functions/QueryGenerator.cs @@ -121,7 +121,6 @@ namespace Handbrake.Functions // Use MaxWidth for built-in presets and width for user settings.
if (mainWindow.PictureSettings.MaximumWidth == 0)
{
-
if (mainWindow.PictureSettings.text_width.Text != "")
if (mainWindow.PictureSettings.drp_anamorphic.SelectedIndex != 1) // Prevent usage for strict anamorphic
query += " -w " + mainWindow.PictureSettings.text_width.Text;
@@ -129,6 +128,7 @@ namespace Handbrake.Functions else
{
if (mainWindow.PictureSettings.text_width.Text != "")
+ if (mainWindow.PictureSettings.drp_anamorphic.SelectedIndex != 1)
query += " -X " + mainWindow.PictureSettings.text_width.Text;
}
@@ -143,7 +143,8 @@ namespace Handbrake.Functions else
{
if (mainWindow.PictureSettings.text_height.Text != "")
- query += " -Y " + mainWindow.PictureSettings.text_height.Text;
+ if (mainWindow.PictureSettings.drp_anamorphic.SelectedIndex == 0 || mainWindow.PictureSettings.drp_anamorphic.SelectedIndex == 3)
+ query += " -Y " + mainWindow.PictureSettings.text_height.Text;
}
string cropTop = mainWindow.PictureSettings.crop_top.Text;
|