From 72bae41d28460388ab4d031c7aa5d565907fe3ba Mon Sep 17 00:00:00 2001 From: sr55 Date: Tue, 27 Nov 2012 17:07:56 +0000 Subject: WinGui: UI Tweaks and further fixes to Custom Anamorphic. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5084 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs | 12 ++++++++++++ win/CS/HandBrakeWPF/Views/OptionsView.xaml | 12 ++++++++---- win/CS/HandBrakeWPF/Views/PictureSettingsView.xaml | 8 +++++--- 3 files changed, 25 insertions(+), 7 deletions(-) diff --git a/win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs index 471c49de5..064342560 100644 --- a/win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs @@ -953,6 +953,12 @@ namespace HandBrakeWPF.ViewModels /// private void CustomAnamorphicAdjust() { + if (this.MaintainAspectRatio && this.DisplayWidth != 0) + { + this.ParWidth = this.DisplayWidth; + this.ParHeight = this.Width; + } + this.SetDisplaySize(); } @@ -1094,6 +1100,12 @@ namespace HandBrakeWPF.ViewModels this.SetDisplaySize(); break; case Anamorphic.Custom: + if (this.MaintainAspectRatio) + { + this.ParWidth = this.DisplayWidth; + this.ParHeight = this.Width; + } + this.SetDisplaySize(); break; } diff --git a/win/CS/HandBrakeWPF/Views/OptionsView.xaml b/win/CS/HandBrakeWPF/Views/OptionsView.xaml index c7d2dc02d..2f3213a7f 100644 --- a/win/CS/HandBrakeWPF/Views/OptionsView.xaml +++ b/win/CS/HandBrakeWPF/Views/OptionsView.xaml @@ -8,7 +8,7 @@ @@ -17,6 +17,10 @@ + + @@ -88,7 +92,7 @@ -