From 5ec7dcc912c9ed681cff004c2593e727c516fa9a Mon Sep 17 00:00:00 2001 From: sr55 Date: Mon, 13 Aug 2012 17:50:39 +0000 Subject: [PATCH] WinGui: Picture settings MaxWidth/Height fixes git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4902 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- .../HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs index ace0c8201..ed1b5f7f8 100644 --- a/win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs @@ -574,8 +574,8 @@ namespace HandBrakeWPF.ViewModels this.SelectedAnamorphicMode = preset.Task.Anamorphic; // Set the limits on the UI Controls. - this.MaxWidth = sourceResolution.Width; - this.MaxHeight = sourceResolution.Height; + this.MaxWidth = preset.Task.MaxWidth ?? sourceResolution.Width; + this.MaxHeight = preset.Task.MaxHeight ?? sourceResolution.Height; this.Task.MaxWidth = preset.Task.MaxWidth; this.Task.MaxHeight = preset.Task.MaxHeight; @@ -724,8 +724,8 @@ namespace HandBrakeWPF.ViewModels } // TODO handle preset max width / height - this.Width = title.Resolution.Width; - this.Height = title.Resolution.Height; + this.Width = this.MaxWidth; + this.Height = this.MaxHeight; this.MaintainAspectRatio = true; if (this.SelectedAnamorphicMode == Anamorphic.Custom) -- 2.40.0