From 492d99c0c5fae43947f5aca8ddff857faa9900d7 Mon Sep 17 00:00:00 2001 From: sr55 Date: Thu, 11 Jun 2009 18:32:56 +0000 Subject: 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 --- win/C#/Controls/PictureSettings.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'win/C#') 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; -- cgit v1.2.3