OSDN Git Service

WinGui:
[handbrake-jp/handbrake-jp-git.git] / win / C# / frmMain / PresetLoader.cs
index c42f820..e56ee4c 100644 (file)
@@ -129,6 +129,21 @@ namespace Handbrake
                 mainWindow.text_height.Text = "";\r
             }\r
 \r
+            // Set the public max width and max height varibles in frmMain\r
+            // These are used by the query generator to determine if it should use -X or -w  / -Y or -h\r
+            if (presetQuery.MaxWidth != 0)\r
+            {\r
+                mainWindow.text_width.Text = presetQuery.MaxWidth.ToString();\r
+                mainWindow.maxWidth = presetQuery.MaxWidth;\r
+            }\r
+\r
+            if (presetQuery.MaxHeight != 0)\r
+            {\r
+                mainWindow.text_height.Text = presetQuery.MaxHeight.ToString();\r
+                mainWindow.maxHeight = presetQuery.MaxHeight;\r
+            }\r
+              \r
+\r
             #endregion\r
 \r
             // Video Settings Tab\r