summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs
diff options
context:
space:
mode:
authorsr55 <[email protected]>2015-03-07 22:54:38 +0000
committersr55 <[email protected]>2015-03-07 22:54:38 +0000
commit24f6d27cf9d979ab0743665b37e60fd1295776d1 (patch)
tree7181504b621d9dcf6c3e59990c135ec72ed84a3c /win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs
parent7705413a03a90c16734b40fb7bc492be8b56ab6f (diff)
WinGui: Updating the app to handle the latest JSON API change regarding the Automatic title scan on encode. This Simplifies the API in the services library.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6977 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs24
1 files changed, 4 insertions, 20 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs
index 24bff58e6..1dd0ad93c 100644
--- a/win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs
@@ -923,26 +923,10 @@ namespace HandBrakeWPF.ViewModels
// Step 2, For the changed field, call hb_set_anamorphic_size and process the results.
PictureSize.AnamorphicResult result = PictureSize.hb_set_anamorphic_size2(this.GetPictureSettings(), this.GetPictureTitleInfo(), setting);
-
- switch (this.SelectedAnamorphicMode)
- {
- case Anamorphic.None:
- this.Task.Width = result.OutputWidth;
- this.Task.Height = result.OutputHeight;
- break;
- case Anamorphic.Strict:
- this.Task.Width = 0;
- this.Task.Height = 0;
- break;
- case Anamorphic.Loose:
- this.Task.Width = result.OutputWidth;
- this.Task.Height = 0;
- break;
- case Anamorphic.Custom:
- this.Task.Width = result.OutputWidth;
- this.Task.Height = result.OutputHeight;
- break;
- }
+ this.Task.Width = result.OutputWidth;
+ this.Task.Height = result.OutputHeight;
+ this.Task.PixelAspectX = (int)Math.Round(result.OutputParWidth, 0);
+ this.Task.PixelAspectY = (int)Math.Round(result.OutputParHeight, 0);
// Step 3, Set the display width label to indicate the output.
double dispWidth = Math.Round((result.OutputWidth * result.OutputParWidth / result.OutputParHeight), 0);