OSDN Git Service

WinGui:
[handbrake-jp/handbrake-jp-git.git] / win / C# / Controls / PictureSettings.cs
index a597de9..0e9a422 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