summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2016-12-28 08:35:18 +0100
committerDamiano Galassi <[email protected]>2016-12-28 09:31:31 +0100
commitb477d5923b1fc896e344f2cc1e3807773c704a13 (patch)
tree6187fc49de915351ab4bfe1b91a4e22de5f67a2b /macosx
parent2ff3147b0c0f47cac67279793c791b56cf1db22e (diff)
MacGui: set PictureWidth and PictureHeight when creating presets with the "Source Maximum" picture option. Fixes #455
(cherry picked from commit e2cc12cf1dfa9ae3d98661a9ead330f496da3f2f)
Diffstat (limited to 'macosx')
-rw-r--r--macosx/HBAddPresetController.m16
1 files changed, 12 insertions, 4 deletions
diff --git a/macosx/HBAddPresetController.m b/macosx/HBAddPresetController.m
index 9c82e4087..3cdce5cb0 100644
--- a/macosx/HBAddPresetController.m
+++ b/macosx/HBAddPresetController.m
@@ -154,12 +154,20 @@ typedef NS_ENUM(NSUInteger, HBAddPresetControllerMode) {
newPreset.name = self.name.stringValue;
newPreset.presetDescription = self.desc.stringValue;
- // Get the picture size
- newPreset[@"PictureWidth"] = @(self.picWidth.integerValue);
- newPreset[@"PictureHeight"] = @(self.picHeight.integerValue);
+ if (self.picSettingsPopUp.selectedTag == HBAddPresetControllerModeSourceMaximum)
+ {
+ newPreset[@"PictureWidth"] = @0;
+ newPreset[@"PictureHeight"] = @0;
+ }
+ else
+ {
+ // Get the user set picture size
+ newPreset[@"PictureWidth"] = @(self.picWidth.integerValue);
+ newPreset[@"PictureHeight"] = @(self.picHeight.integerValue);
+ }
//Get the whether or not to apply pic Size and Cropping (includes Anamorphic)
- newPreset[@"UsesPictureSettings"] = @(self.picSettingsPopUp.selectedItem.tag);
+ newPreset[@"UsesPictureSettings"] = @(self.picSettingsPopUp.selectedTag);
// Always use Picture Filter settings for the preset
newPreset[@"UsesPictureFilters"] = @YES;