diff options
author | Damiano Galassi <[email protected]> | 2021-01-16 12:34:33 +0100 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2021-01-16 12:34:33 +0100 |
commit | a6aa0b7a7429923e8dd3e2a83267d5a5ee7b68fd (patch) | |
tree | 3d702962049ab10910e051718c5ef68e80270d9d | |
parent | c2c3e6888adf67eedbe3e1e5fa607af9811d66f0 (diff) |
MacGui: cosmetics.
-rw-r--r-- | macosx/HBAddPresetController.m | 32 | ||||
-rw-r--r-- | macosx/HBPreviewController.m | 4 | ||||
-rw-r--r-- | macosx/HBPreviewViewController.m | 4 |
3 files changed, 20 insertions, 20 deletions
diff --git a/macosx/HBAddPresetController.m b/macosx/HBAddPresetController.m index 6f07de6c5..667579fbd 100644 --- a/macosx/HBAddPresetController.m +++ b/macosx/HBAddPresetController.m @@ -214,36 +214,36 @@ switch (self.picSettingsPopUp.selectedTag) { case HBPictureResolutionLimitModeNone: - newPreset[@"PictureWidth"] = @(0); - newPreset[@"PictureHeight"] = @(0); + newPreset[@"PictureWidth"] = @0; + newPreset[@"PictureHeight"] = @0; break; case HBPictureResolutionLimitMode8K: - newPreset[@"PictureWidth"] = @(7680); - newPreset[@"PictureHeight"] = @(4320); + newPreset[@"PictureWidth"] = @7680; + newPreset[@"PictureHeight"] = @4320; break; case HBPictureResolutionLimitMode4K: - newPreset[@"PictureWidth"] = @(3840); - newPreset[@"PictureHeight"] = @(2160); + newPreset[@"PictureWidth"] = @3840; + newPreset[@"PictureHeight"] = @2160; break; case HBPictureResolutionLimitMode1440p: - newPreset[@"PictureWidth"] = @(2560); - newPreset[@"PictureHeight"] = @(1440); + newPreset[@"PictureWidth"] = @2560; + newPreset[@"PictureHeight"] = @1440; break; case HBPictureResolutionLimitMode1080p: - newPreset[@"PictureWidth"] = @(1920); - newPreset[@"PictureHeight"] = @(1080); + newPreset[@"PictureWidth"] = @1920; + newPreset[@"PictureHeight"] = @1080; break; case HBPictureResolutionLimitMode720p: - newPreset[@"PictureWidth"] = @(1280); - newPreset[@"PictureHeight"] = @(720); + newPreset[@"PictureWidth"] = @1280; + newPreset[@"PictureHeight"] = @720; break; case HBPictureResolutionLimitMode576p: - newPreset[@"PictureWidth"] = @(720); - newPreset[@"PictureHeight"] = @(576); + newPreset[@"PictureWidth"] = @720; + newPreset[@"PictureHeight"] = @576; break; case HBPictureResolutionLimitMode480p: - newPreset[@"PictureWidth"] = @(720); - newPreset[@"PictureHeight"] = @(480); + newPreset[@"PictureWidth"] = @720; + newPreset[@"PictureHeight"] = @480; break; case HBPictureResolutionLimitModeCustom: default: diff --git a/macosx/HBPreviewController.m b/macosx/HBPreviewController.m index 06fb4e1ab..b908b52cd 100644 --- a/macosx/HBPreviewController.m +++ b/macosx/HBPreviewController.m @@ -412,7 +412,7 @@ [CATransaction begin]; CABasicAnimation *fadeInAnimation = [CABasicAnimation animationWithKeyPath:@"opacity"]; fadeInAnimation.fromValue = @([hud.layer.presentationLayer opacity]); - fadeInAnimation.toValue = @(1.0); + fadeInAnimation.toValue = @1.0; fadeInAnimation.beginTime = 0.0; fadeInAnimation.duration = ANIMATION_DUR; @@ -430,7 +430,7 @@ [CATransaction begin]; CABasicAnimation *fadeOutAnimation = [CABasicAnimation animationWithKeyPath:@"opacity"]; fadeOutAnimation.fromValue = @([hud.layer.presentationLayer opacity]); - fadeOutAnimation.toValue = @(0.0); + fadeOutAnimation.toValue = @0.0; fadeOutAnimation.beginTime = 0.0; fadeOutAnimation.duration = ANIMATION_DUR; diff --git a/macosx/HBPreviewViewController.m b/macosx/HBPreviewViewController.m index 6e6063be2..e6bcf4cb9 100644 --- a/macosx/HBPreviewViewController.m +++ b/macosx/HBPreviewViewController.m @@ -120,7 +120,7 @@ It may be used under the terms of the GNU General Public License. */ [CATransaction begin]; CABasicAnimation *fadeInAnimation = [CABasicAnimation animationWithKeyPath:@"opacity"]; fadeInAnimation.fromValue = @(hud.layer.presentationLayer.opacity); - fadeInAnimation.toValue = @(1.0); + fadeInAnimation.toValue = @1.0; fadeInAnimation.beginTime = 0.0; fadeInAnimation.duration = ANIMATION_DUR; @@ -138,7 +138,7 @@ It may be used under the terms of the GNU General Public License. */ [CATransaction begin]; CABasicAnimation *fadeOutAnimation = [CABasicAnimation animationWithKeyPath:@"opacity"]; fadeOutAnimation.fromValue = @(hud.layer.presentationLayer.opacity); - fadeOutAnimation.toValue = @(0.0); + fadeOutAnimation.toValue = @0.0; fadeOutAnimation.beginTime = 0.0; fadeOutAnimation.duration = ANIMATION_DUR; |