]> granicus.if.org Git - handbrake/commitdiff
WinGui:
authorsr55 <sr55.hb@outlook.com>
Thu, 11 Jun 2009 18:32:56 +0000 (18:32 +0000)
committersr55 <sr55.hb@outlook.com>
Thu, 11 Jun 2009 18:32:56 +0000 (18:32 +0000)
- 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

index a597de9ebc6f028441bcada22b59ef606b0ddd62..0e9a422d64184242b13adb08b2e42d0c61c7dd0d 100644 (file)
@@ -599,12 +599,12 @@ namespace Handbrake.Controls
             {\r
                 int aw = 0;\r
                 int ah = 0;\r
-                if (selectedTitle.AspectRatio.ToString(Culture) == "1.78")\r
+                if (selectedTitle.AspectRatio == 1.78F)\r
                 {\r
                     aw = 16;\r
                     ah = 9;\r
                 }\r
-                else if (selectedTitle.AspectRatio.ToString(Culture) == "1.33")\r
+                if (selectedTitle.AspectRatio == 1.33F)\r
                 {\r
                     aw = 4;\r
                     ah = 3;\r
@@ -641,12 +641,12 @@ namespace Handbrake.Controls
         {\r
             int aw = 0;\r
             int ah = 0;\r
-            if (selectedTitle.AspectRatio.ToString(Culture) == "1.78")\r
+            if (selectedTitle.AspectRatio == 1.78F)\r
             {\r
                 aw = 16;\r
                 ah = 9;\r
             }\r
-            else if (selectedTitle.AspectRatio.ToString(Culture) == "1.33")\r
+            if (selectedTitle.AspectRatio == 1.33F)\r
             {\r
                 aw = 4;\r
                 ah = 3;\r