diff options
author | sr55 <[email protected]> | 2009-06-11 16:58:58 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2009-06-11 16:58:58 +0000 |
commit | 5beaa38cf99c6c4b9281a03909dbf5394b03f302 (patch) | |
tree | 9c892640f7d68b0253d0232d511dee684e903109 | |
parent | 85ca8ca9325e10aff5e40d96e3f0d4163f66b917 (diff) |
WinGui:
- Added some guards in height and width change functions to prevent both values dropping below 64
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2513 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | win/C#/Controls/PictureSettings.cs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/win/C#/Controls/PictureSettings.cs b/win/C#/Controls/PictureSettings.cs index 88f0e8f41..6cfe18c7b 100644 --- a/win/C#/Controls/PictureSettings.cs +++ b/win/C#/Controls/PictureSettings.cs @@ -520,6 +520,9 @@ namespace Handbrake.Controls if (selectedTitle.Resolution.Width < returnVal)
returnVal = selectedTitle.Resolution.Width;
+ if (returnVal < 64)
+ returnVal = 64;
+
// Set the global tracker
widthVal = (int)returnVal;
@@ -535,8 +538,11 @@ namespace Handbrake.Controls if (selectedTitle.Resolution.Height < returnVal)
returnVal = selectedTitle.Resolution.Height;
+ if (returnVal < 64)
+ returnVal = 64;
+
// Set the global tracker
- heightVal = (int)returnVal; // TODO THIS IS CAUSING PROBLEM
+ heightVal = (int)returnVal;
return returnVal;
}
|