From 356186fbff2db76609a182de4460b1466b5f7878 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sat, 1 Nov 2014 21:16:59 +0000 Subject: [PATCH] WinGui: When updating presets, don't override the picture settings values if SourceMax/Custom git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6493 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/CS/HandBrake.ApplicationServices/Model/Preset.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/win/CS/HandBrake.ApplicationServices/Model/Preset.cs b/win/CS/HandBrake.ApplicationServices/Model/Preset.cs index e281e12b6..2bddd75aa 100644 --- a/win/CS/HandBrake.ApplicationServices/Model/Preset.cs +++ b/win/CS/HandBrake.ApplicationServices/Model/Preset.cs @@ -121,6 +121,14 @@ namespace HandBrake.ApplicationServices.Model /// public void Update(EncodeTask task, AudioBehaviours audioBehaviours, SubtitleBehaviours subtitleBehaviours) { + // Copy over Max Width / Height for the following picture settings modes. + if (this.PictureSettingsMode == PresetPictureSettingsMode.Custom + || this.PictureSettingsMode == PresetPictureSettingsMode.SourceMaximum) + { + task.MaxWidth = this.Task.MaxWidth; + task.MaxHeight = this.Task.MaxHeight; + } + this.Task = task; this.AudioTrackBehaviours = audioBehaviours; this.SubtitleTrackBehaviours = subtitleBehaviours; -- 2.40.0