Skip to content

Commit 13adfb6

Browse files
author
RandomEngy
committed
Clear locked width/height values when switching to loose or strict anamorphic.
--HG-- branch : beta
1 parent c64d386 commit 13adfb6

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

VidCoder/ViewModel/Panels/PicturePanelViewModel.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,9 +317,24 @@ public AnamorphicCombo SelectedAnamorphic
317317
Anamorphic newValue = EnumConverter.Convert<AnamorphicCombo, Anamorphic>(value);
318318
this.Profile.Anamorphic = newValue;
319319

320+
if (newValue == Anamorphic.Strict)
321+
{
322+
this.Profile.Width = 0;
323+
this.Profile.MaxWidth = 0;
324+
325+
this.RaisePropertyChanged(() => this.Width);
326+
this.RaisePropertyChanged(() => this.MaxWidth);
327+
}
328+
320329
if (newValue == Anamorphic.Strict || newValue == Anamorphic.Loose)
321330
{
322331
this.KeepDisplayAspect = true;
332+
333+
this.Profile.Height = 0;
334+
this.Profile.MaxHeight = 0;
335+
336+
this.RaisePropertyChanged(() => this.Height);
337+
this.RaisePropertyChanged(() => this.MaxHeight);
323338
}
324339

325340
if (this.Profile.Anamorphic == Anamorphic.Custom)

0 commit comments

Comments
 (0)