summaryrefslogtreecommitdiffstats
path: root/win/C#
diff options
context:
space:
mode:
Diffstat (limited to 'win/C#')
-rw-r--r--win/C#/Controls/PictureSettings.cs8
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;