diff options
author | sr55 <[email protected]> | 2009-06-11 18:32:56 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2009-06-11 18:32:56 +0000 |
commit | 492d99c0c5fae43947f5aca8ddff857faa9900d7 (patch) | |
tree | 40601496d1ed90ec775c9dbe2ad70235ade9c171 | |
parent | fd0c0c87d59dd8b3b49488af57cfbd8fcb7fc187 (diff) |
WinGui:
- Don't really know why I was using strings to compare to floats :/
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2517 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | win/C#/Controls/PictureSettings.cs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/win/C#/Controls/PictureSettings.cs b/win/C#/Controls/PictureSettings.cs index a597de9eb..0e9a422d6 100644 --- a/win/C#/Controls/PictureSettings.cs +++ b/win/C#/Controls/PictureSettings.cs @@ -599,12 +599,12 @@ namespace Handbrake.Controls {
int aw = 0;
int ah = 0;
- if (selectedTitle.AspectRatio.ToString(Culture) == "1.78")
+ if (selectedTitle.AspectRatio == 1.78F)
{
aw = 16;
ah = 9;
}
- else if (selectedTitle.AspectRatio.ToString(Culture) == "1.33")
+ if (selectedTitle.AspectRatio == 1.33F)
{
aw = 4;
ah = 3;
@@ -641,12 +641,12 @@ namespace Handbrake.Controls {
int aw = 0;
int ah = 0;
- if (selectedTitle.AspectRatio.ToString(Culture) == "1.78")
+ if (selectedTitle.AspectRatio == 1.78F)
{
aw = 16;
ah = 9;
}
- else if (selectedTitle.AspectRatio.ToString(Culture) == "1.33")
+ if (selectedTitle.AspectRatio == 1.33F)
{
aw = 4;
ah = 3;
|