diff options
author | sr55 <[email protected]> | 2008-11-28 19:57:05 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2008-11-28 19:57:05 +0000 |
commit | 80eb2f5952cf5d0250be389f507355b31d42de6c (patch) | |
tree | 23da7dd5ebda27e463d6633f00a97af9fb0c386c /win/C#/frmMain.cs | |
parent | 4c8f44a4864ac92e1ccc0ca7165592d79a6aa2fc (diff) |
WinGui:
- Fixes a problem with res calc.
- Cleans up the Main.cs file a bit.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1967 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#/frmMain.cs')
-rw-r--r-- | win/C#/frmMain.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/win/C#/frmMain.cs b/win/C#/frmMain.cs index e7f31f688..fd9aa78aa 100644 --- a/win/C#/frmMain.cs +++ b/win/C#/frmMain.cs @@ -948,7 +948,7 @@ namespace Handbrake //Picture Tab
private void text_width_TextChanged(object sender, EventArgs e)
{
- maxWidth = 0; // Reset max width so that it's not using the MaxWidth -X. Quick hack to allow -X for preset usage.
+ maxWidth = 0; maxHeight = 0; // Reset max width so that it's not using the MaxWidth -X. Quick hack to allow -X for preset usage.
int width;
Boolean parsed = int.TryParse(text_width.Text, out width);
@@ -960,12 +960,13 @@ namespace Handbrake text_width.BackColor = Color.LightGreen;
- if (lbl_Aspect.Text != "Select a Title" && maxWidth != 0 && maxHeight != 0)
+ if (lbl_Aspect.Text != "Select a Title" && maxWidth == 0 && maxHeight == 0)
{
if (drp_anamorphic.Text == "None")
{
int height = hb_common_func.cacluateNonAnamorphicHeight(width, text_top.Value, text_bottom.Value, text_left.Value, text_right.Value, selectedTitle);
- text_height.Text = height.ToString();
+ if (height != 0)
+ text_height.Text = height.ToString();
}
}
}
|