]> granicus.if.org Git - handbrake/commitdiff
WinGui: Fix a bug in preview scaling.
authorsr55 <sr55.hb@outlook.com>
Fri, 15 Dec 2017 23:05:51 +0000 (23:05 +0000)
committersr55 <sr55.hb@outlook.com>
Fri, 15 Dec 2017 23:05:51 +0000 (23:05 +0000)
win/CS/HandBrakeWPF/ViewModels/StaticPreviewViewModel.cs

index 4a2d3e2b2b441b1e39585170a0c3d6d6fa7a7e77..d801dd256d7cd233ec17940bff90b41dd91e5a25 100644 (file)
@@ -500,7 +500,7 @@ namespace HandBrakeWPF.ViewModels
                 return (int)Math.Round(workArea.Width, 0) - 50;\r
             }\r
 \r
-            return 100;\r
+            return width;\r
         }\r
 \r
         public int FixHeight(int height)\r
@@ -511,7 +511,7 @@ namespace HandBrakeWPF.ViewModels
                 return (int)Math.Round(workArea.Height, 0) - 50;\r
             }\r
 \r
-            return 100;\r
+            return height;\r
         }\r
 \r
         #endregion\r