diff options
author | sr55 <[email protected]> | 2009-06-07 23:09:07 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2009-06-07 23:09:07 +0000 |
commit | a5631d9f95e9c70d8eda4a83acfc93394a8484be (patch) | |
tree | 1123d674a3d687dbfafc29e7c731753c0227142e /win | |
parent | 2b3ac1f2ae64e8591ffa6f3485bd131b8ff7d9ef (diff) |
WinGui:
- Small fix for loose. Truncate not round display width.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2498 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win')
-rw-r--r-- | win/C#/Controls/PictureSettings.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win/C#/Controls/PictureSettings.cs b/win/C#/Controls/PictureSettings.cs index 77be0dbc6..1563e8685 100644 --- a/win/C#/Controls/PictureSettings.cs +++ b/win/C#/Controls/PictureSettings.cs @@ -680,7 +680,7 @@ namespace Handbrake.Controls storageAspect = (double)actualWidth / source_cropped_height;
// Calculate the new height based on the input cropped width
- double hcalc = actualWidth / storageAspect;
+ double hcalc = (actualWidth / storageAspect) + 0.5;
double newHeight = getModulusAuto(16, hcalc);
looseAnamorphicHeightGuard = true;
text_height.Value = (decimal)newHeight; // BUG Out of Range Exception with Width too low here.
@@ -691,7 +691,7 @@ namespace Handbrake.Controls double displayWidth = (actualWidth * parW / parH);
// Now correct DisplayWidth to maintain Aspect ratio. ActualHeight was mod16'd and thus AR is slightly different than the worked out displayWidths
- return Math.Round(displayWidth, 0) + "x" + newHeight;
+ return Math.Truncate(displayWidth) + "x" + newHeight;
}
return "Select a Title";
|