diff options
author | sr55 <[email protected]> | 2014-05-10 19:53:46 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2014-05-10 19:53:46 +0000 |
commit | 7bb0a7cfc9c4c21a6718b8dfd192fb1c5e1a09e7 (patch) | |
tree | 7d63aa6dcc883298883862c5d4f9f47b9dfac505 /win/CS | |
parent | a499c3722ddcfa5d9e70d6356a2a872bf01a796a (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')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/AddPresetViewModel.cs | 5 |
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;
|