this.SelectedAnamorphicMode = preset.Task.Anamorphic;\r
\r
// Set the limits on the UI Controls.\r
- this.MaxWidth = preset.Task.MaxWidth ?? sourceResolution.Width;\r
- this.MaxHeight = preset.Task.MaxHeight ?? sourceResolution.Height;\r
+ this.MaxWidth = sourceResolution.Width;\r
+ this.MaxHeight = sourceResolution.Height;\r
this.Task.MaxWidth = preset.Task.MaxWidth;\r
this.Task.MaxHeight = preset.Task.MaxHeight;\r
\r
if (preset.Task.MaxWidth.HasValue)\r
{\r
- if (this.Width > this.MaxWidth)\r
+ if (this.Width > preset.Task.MaxWidth)\r
{\r
- this.Width = this.MaxWidth;\r
+ this.Width = preset.Task.MaxWidth.Value;\r
} \r
else\r
{\r
- this.Width = preset.Task.Width ?? this.getRes((sourceResolution.Width - this.CropLeft - this.CropRight), this.MaxWidth);\r
+ this.Width = preset.Task.Width ?? this.getRes((sourceResolution.Width - this.CropLeft - this.CropRight), preset.Task.MaxWidth.Value);\r
}\r
} \r
else\r
\r
if (preset.Task.MaxHeight.HasValue)\r
{\r
- if (this.Height > this.MaxHeight)\r
+ if (this.Height > preset.Task.MaxHeight)\r
{\r
- this.Height = this.MaxHeight;\r
+ this.Height = preset.Task.MaxHeight.Value;\r
}\r
else\r
{\r
- this.Height = preset.Task.Height ?? this.getRes((sourceResolution.Height - this.CropTop - this.CropBottom), this.MaxHeight);\r
+ this.Height = preset.Task.Height ?? this.getRes((sourceResolution.Height - this.CropTop - this.CropBottom), preset.Task.MaxHeight.Value);\r
}\r
} \r
- else\r
- {\r
- this.Height = preset.Task.Height ?? (sourceResolution.Height - this.CropTop - this.CropBottom);\r
- }\r
\r
// Anamorphic\r
if (preset.Task.Anamorphic == Anamorphic.Custom)\r
this.ParHeight = preset.Task.PixelAspectY;\r
}\r
\r
- this.MaintainAspectRatio = preset.Task.KeepDisplayAspect;\r
+ // Default this to On.\r
+ if (preset.Task.Anamorphic == Anamorphic.None)\r
+ {\r
+ this.MaintainAspectRatio = true;\r
+ }\r
+ else\r
+ {\r
+ this.MaintainAspectRatio = preset.Task.KeepDisplayAspect;\r
+ }\r
\r
if (preset.Task.Modulus.HasValue)\r
{\r