using System;\r
using System.Drawing;\r
+using System.Globalization;\r
using System.Windows.Forms;\r
using Handbrake.Parsing;\r
\r
\r
public partial class PictureSettings : UserControl\r
{\r
+ private static readonly CultureInfo Culture = new CultureInfo("en-US", false);\r
+\r
// Globals\r
public int maxWidth, maxHeight;\r
int widthVal, heightVal;\r
{\r
int aw = 0;\r
int ah = 0;\r
- if (selectedTitle.AspectRatio.ToString() == "1.78")\r
+ if (selectedTitle.AspectRatio.ToString(Culture) == "1.78")\r
{\r
aw = 16;\r
ah = 9;\r
}\r
- else if (selectedTitle.AspectRatio.ToString() == "1.33")\r
+ else if (selectedTitle.AspectRatio.ToString(Culture) == "1.33")\r
{\r
aw = 4;\r
ah = 3;\r
{\r
int aw = 0;\r
int ah = 0;\r
- if (selectedTitle.AspectRatio.ToString() == "1.78")\r
+ if (selectedTitle.AspectRatio.ToString(Culture) == "1.78")\r
{\r
aw = 16;\r
ah = 9;\r
}\r
- else if (selectedTitle.AspectRatio.ToString() == "1.33")\r
+ else if (selectedTitle.AspectRatio.ToString(Culture) == "1.33")\r
{\r
aw = 4;\r
ah = 3;\r