summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorsr55 <[email protected]>2012-08-13 17:50:39 +0000
committersr55 <[email protected]>2012-08-13 17:50:39 +0000
commit5ec7dcc912c9ed681cff004c2593e727c516fa9a (patch)
treef22856a311edfc112273018dea04dae9d7911d33 /win
parent38ce76e49a5422b2bb203c1bf6f2602a75f57be6 (diff)
WinGui: Picture settings MaxWidth/Height fixes
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4902 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs8
1 files 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)