summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/ViewModels/AddPresetViewModel.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2014-05-10 19:53:46 +0000
committersr55 <[email protected]>2014-05-10 19:53:46 +0000
commit7bb0a7cfc9c4c21a6718b8dfd192fb1c5e1a09e7 (patch)
tree7d63aa6dcc883298883862c5d4f9f47b9dfac505 /win/CS/HandBrakeWPF/ViewModels/AddPresetViewModel.cs
parenta499c3722ddcfa5d9e70d6356a2a872bf01a796a (diff)
WinGui: Pre-populate the add preset custom width/height when custom is used.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6178 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/AddPresetViewModel.cs')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/AddPresetViewModel.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/AddPresetViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/AddPresetViewModel.cs
index de6ad54eb..16b26bb83 100644
--- a/win/CS/HandBrakeWPF/ViewModels/AddPresetViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/AddPresetViewModel.cs
@@ -151,6 +151,11 @@ namespace HandBrakeWPF.ViewModels
{
default:
this.SelectedPictureSettingMode = PresetPictureSettingsMode.Custom;
+ if (title != null && title.Resolution != null)
+ {
+ this.CustomWidth = title.Resolution.Width;
+ this.CustomHeight = title.Resolution.Height;
+ }
break;
case Anamorphic.Strict:
this.SelectedPictureSettingMode = PresetPictureSettingsMode.SourceMaximum;