diff options
author | sr55 <[email protected]> | 2010-07-22 18:20:19 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2010-07-22 18:20:19 +0000 |
commit | a7a9e89446f318ae286a7cf45182b3f1dee978a6 (patch) | |
tree | 017e2548bba5315d7e32d86fe728b20f2761fb21 /win/C#/Controls/PictureSettings.cs | |
parent | 925dfe6a2292889fd623d4092747ad798b5d1606 (diff) |
Reverting 3452
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3454 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/Controls/PictureSettings.cs')
-rw-r--r-- | win/C#/Controls/PictureSettings.cs | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/win/C#/Controls/PictureSettings.cs b/win/C#/Controls/PictureSettings.cs index 534cc0fd5..e0319a690 100644 --- a/win/C#/Controls/PictureSettings.cs +++ b/win/C#/Controls/PictureSettings.cs @@ -7,6 +7,7 @@ namespace Handbrake.Controls {
using System;
using System.Drawing;
+ using System.Globalization;
using System.Windows.Forms;
using HandBrake.ApplicationServices.Parsing;
@@ -18,6 +19,7 @@ namespace Handbrake.Controls /// </summary>
public partial class PictureSettings : UserControl
{
+ private readonly CultureInfo culture = new CultureInfo("en-US", false);
private bool preventChangingWidth;
private bool preventChangingHeight;
private bool preventChangingCustom;
@@ -150,6 +152,9 @@ namespace Handbrake.Controls // Picture Controls
private void TextWidthValueChanged(object sender, EventArgs e)
{
+ if (Properties.Settings.Default.disableResCalc)
+ return;
+
if (preventChangingWidth)
return;
@@ -209,6 +214,9 @@ namespace Handbrake.Controls private void TextHeightValueChanged(object sender, EventArgs e)
{
+ if (Properties.Settings.Default.disableResCalc)
+ return;
+
if (preventChangingHeight)
return;
@@ -269,6 +277,9 @@ namespace Handbrake.Controls private void CheckKeepArCheckedChanged(object sender, EventArgs e)
{
+ if (Properties.Settings.Default.disableResCalc)
+ return;
+
// Force TextWidth to recalc height
if (check_KeepAR.Checked)
TextWidthValueChanged(this, new EventArgs());
@@ -287,6 +298,9 @@ namespace Handbrake.Controls private void UpdownDisplayWidthValueChanged(object sender, EventArgs e)
{
+ if (Properties.Settings.Default.disableResCalc)
+ return;
+
if (preventChangingDisplayWidth == false && check_KeepAR.CheckState == CheckState.Unchecked)
{
preventChangingCustom = true;
@@ -312,7 +326,7 @@ namespace Handbrake.Controls // Update value
preventChangingHeight = true;
- text_height.Value = modulusHeight;
+ text_height.Value = (decimal)modulusHeight;
updownParWidth.Value = updownDisplayWidth.Value;
updownParHeight.Value = text_width.Value;
preventChangingHeight = false;
|