summaryrefslogtreecommitdiffstats
path: root/win/C#/Controls/PictureSettings.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2009-06-15 14:56:23 +0000
committersr55 <[email protected]>2009-06-15 14:56:23 +0000
commit24780596a9e62e823d619792445a784094f904a2 (patch)
tree79909eb55db5bf00acd2466a32d7da343949d8f5 /win/C#/Controls/PictureSettings.cs
parentb023bb532c17e1284230172b660baa32b5750318 (diff)
WinGui:
- Picture Settings: Height of 0 allows for no -l to be passed to the CLI - Picture Settings / pre-sets now set 0 when no Height specified. Prevents the panel from using incorrect values when pre-sets are selected. - Simplified the Encode.cs set-up. Includes changes to QueueHandler git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2534 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Controls/PictureSettings.cs')
-rw-r--r--win/C#/Controls/PictureSettings.cs17
1 files changed, 6 insertions, 11 deletions
diff --git a/win/C#/Controls/PictureSettings.cs b/win/C#/Controls/PictureSettings.cs
index b7d08b809..2d1fc154d 100644
--- a/win/C#/Controls/PictureSettings.cs
+++ b/win/C#/Controls/PictureSettings.cs
@@ -542,8 +542,8 @@ namespace Handbrake.Controls
if (selectedTitle.Resolution.Height < returnVal)
returnVal = selectedTitle.Resolution.Height;
- if (returnVal < 64)
- returnVal = 64;
+ /*if (returnVal < 64)
+ returnVal = 64;*/
// Set the global tracker
heightVal = (int)returnVal;
@@ -623,20 +623,15 @@ namespace Handbrake.Controls
double new_height = (width*selectedTitle.Resolution.Width*ah*crop_height)/
(selectedTitle.Resolution.Height*aw*crop_width);
- if (drp_anamorphic.SelectedIndex == 3)
- new_height = getModulusAuto(int.Parse(drop_modulus.SelectedItem.ToString()), new_height);
- else
- new_height = getModulusAuto(16, new_height);
+ new_height = drp_anamorphic.SelectedIndex == 3 ? getModulusAuto(int.Parse(drop_modulus.SelectedItem.ToString()), new_height) : getModulusAuto(16, new_height);
- //16 * (421 / 16)
- //double z = ( 16 * (( y + 8 ) / 16 ) );
int x = int.Parse(new_height.ToString());
- if (x < 64)
- x = 64;
+ /*if (x < 64)
+ x = 64; */
return x;
}
}
- return 64;
+ return 0;
}
private int cacluateWidth(int height)
{