summaryrefslogtreecommitdiffstats
path: root/macosx
diff options
context:
space:
mode:
authorBradley Sepos <[email protected]>2020-11-09 04:39:04 -0500
committerBradley Sepos <[email protected]>2020-11-09 15:54:42 -0500
commitf58e9a7cd5a2612b8903f4a0e957a08674aee864 (patch)
tree62dd1549d3c2bc759d8aff40a9a5d692f4087972 /macosx
parent3d3cdbc4f7829bd04e5edba242bab2cf08826f18 (diff)
MacGUI: Add 1440p 2.5K to resolution limit list.
Diffstat (limited to 'macosx')
-rw-r--r--macosx/Base.lproj/HBPictureViewController.xib1
-rw-r--r--macosx/HBAddPresetController.m7
-rw-r--r--macosx/HBPicture.h1
-rw-r--r--macosx/HBPicture.m8
-rw-r--r--macosx/de.lproj/HBPictureViewController.strings3
-rw-r--r--macosx/de.lproj/Localizable.strings3
-rw-r--r--macosx/it.lproj/HBPictureViewController.strings3
-rw-r--r--macosx/it.lproj/Localizable.strings3
8 files changed, 29 insertions, 0 deletions
diff --git a/macosx/Base.lproj/HBPictureViewController.xib b/macosx/Base.lproj/HBPictureViewController.xib
index f506306de..6457d61c5 100644
--- a/macosx/Base.lproj/HBPictureViewController.xib
+++ b/macosx/Base.lproj/HBPictureViewController.xib
@@ -459,6 +459,7 @@
<menuItem title="None" state="on" id="gWL-mx-RIK"/>
<menuItem title="4320p 8K Ultra HD" tag="1" id="Vrx-BH-ry2"/>
<menuItem title="2160p 4K Ultra HD" tag="2" id="1Zm-mM-8Tb"/>
+ <menuItem title="1440p 2.5K Quad HD" tag="3" id="2ax-HE-Amt"/>
<menuItem title="1080p HD" tag="3" id="qzy-K8-2tY"/>
<menuItem title="720p HD" tag="4" id="Xao-1P-xPT"/>
<menuItem title="576p PAL SD" tag="5" id="yue-jq-T1X"/>
diff --git a/macosx/HBAddPresetController.m b/macosx/HBAddPresetController.m
index feea904e7..6f07de6c5 100644
--- a/macosx/HBAddPresetController.m
+++ b/macosx/HBAddPresetController.m
@@ -85,6 +85,9 @@
[self.picSettingsPopUp addItemWithTitle:NSLocalizedString(@"2160p 4K Ultra HD", @"Add preset window -> picture setting")];
[self.picSettingsPopUp.lastItem setTag:HBPictureResolutionLimitMode4K];
+ [self.picSettingsPopUp addItemWithTitle:NSLocalizedString(@"1440p 2.5K Quad HD", @"Add preset window -> picture setting")];
+ [self.picSettingsPopUp.lastItem setTag:HBPictureResolutionLimitMode1440p];
+
[self.picSettingsPopUp addItemWithTitle:NSLocalizedString(@"1080p HD", @"Add preset window -> picture setting")];
[self.picSettingsPopUp.lastItem setTag:HBPictureResolutionLimitMode1080p];
@@ -222,6 +225,10 @@
newPreset[@"PictureWidth"] = @(3840);
newPreset[@"PictureHeight"] = @(2160);
break;
+ case HBPictureResolutionLimitMode1440p:
+ newPreset[@"PictureWidth"] = @(2560);
+ newPreset[@"PictureHeight"] = @(1440);
+ break;
case HBPictureResolutionLimitMode1080p:
newPreset[@"PictureWidth"] = @(1920);
newPreset[@"PictureHeight"] = @(1080);
diff --git a/macosx/HBPicture.h b/macosx/HBPicture.h
index 7e614e6d6..219299344 100644
--- a/macosx/HBPicture.h
+++ b/macosx/HBPicture.h
@@ -15,6 +15,7 @@ typedef NS_ENUM(NSUInteger, HBPictureResolutionLimitMode) {
HBPictureResolutionLimitModeNone,
HBPictureResolutionLimitMode8K,
HBPictureResolutionLimitMode4K,
+ HBPictureResolutionLimitMode1440p,
HBPictureResolutionLimitMode1080p,
HBPictureResolutionLimitMode720p,
HBPictureResolutionLimitMode576p,
diff --git a/macosx/HBPicture.m b/macosx/HBPicture.m
index 27042ac34..b34b73c23 100644
--- a/macosx/HBPicture.m
+++ b/macosx/HBPicture.m
@@ -152,6 +152,10 @@ NSString * const HBPictureChangedNotification = @"HBPictureChangedNotification";
self.maxWidth = 3840;
self.maxHeight = 2160;
break;
+ case HBPictureResolutionLimitMode1440p:
+ self.maxWidth = 2560;
+ self.maxHeight = 1440;
+ break;
case HBPictureResolutionLimitMode1080p:
self.maxWidth = 1920;
self.maxHeight = 1080;
@@ -1103,6 +1107,10 @@ fail:
{
self.resolutionLimitMode = HBPictureResolutionLimitMode4K;
}
+ else if (self.maxWidth == 2560 && self.maxHeight == 1440)
+ {
+ self.resolutionLimitMode = HBPictureResolutionLimitMode1440p;
+ }
else if (self.maxWidth == 1920 && self.maxHeight == 1080)
{
self.resolutionLimitMode = HBPictureResolutionLimitMode1080p;
diff --git a/macosx/de.lproj/HBPictureViewController.strings b/macosx/de.lproj/HBPictureViewController.strings
index f3b8d844c..9e34b6b3c 100644
--- a/macosx/de.lproj/HBPictureViewController.strings
+++ b/macosx/de.lproj/HBPictureViewController.strings
@@ -199,6 +199,9 @@
/* Class = "NSMenuItem"; title = "1080p HD"; ObjectID = "qzy-K8-2tY"; */
"qzy-K8-2tY.title" = "1080p HD";
+/* Class = "NSMenuItem"; title = "1440p 2.5K Quad HD"; ObjectID = "2ax-HE-Amt"; */
+"2ax-HE-Amt.title" = "1440p 2.5K Quad HD";
+
/* Class = "NSStepper"; ibExternalAccessibilityDescription = "Crop left"; ObjectID = "r9l-cH-pFW"; */
"r9l-cH-pFW.ibExternalAccessibilityDescription" = "Links beschneiden";
diff --git a/macosx/de.lproj/Localizable.strings b/macosx/de.lproj/Localizable.strings
index ee3752928..4e38e7837 100644
--- a/macosx/de.lproj/Localizable.strings
+++ b/macosx/de.lproj/Localizable.strings
@@ -38,6 +38,9 @@
"1080p HD" = "1080p HD";
/* Add preset window -> picture setting */
+"1440p 2.5K Quad HD" = "1440p 2.5K Quad HD";
+
+/* Add preset window -> picture setting */
"2160p 4K Ultra HD" = "2160p 4K Ultra HD";
/* Add preset window -> picture setting */
diff --git a/macosx/it.lproj/HBPictureViewController.strings b/macosx/it.lproj/HBPictureViewController.strings
index b520270ad..708ba1fa6 100644
--- a/macosx/it.lproj/HBPictureViewController.strings
+++ b/macosx/it.lproj/HBPictureViewController.strings
@@ -199,6 +199,9 @@
/* Class = "NSMenuItem"; title = "1080p HD"; ObjectID = "qzy-K8-2tY"; */
"qzy-K8-2tY.title" = "1080p HD";
+/* Class = "NSMenuItem"; title = "1440p 2.5K Quad HD"; ObjectID = "2ax-HE-Amt"; */
+"2ax-HE-Amt.title" = "1440p 2.5K Quad HD";
+
/* Class = "NSStepper"; ibExternalAccessibilityDescription = "Crop left"; ObjectID = "r9l-cH-pFW"; */
"r9l-cH-pFW.ibExternalAccessibilityDescription" = "Ritaglia a sinistra";
diff --git a/macosx/it.lproj/Localizable.strings b/macosx/it.lproj/Localizable.strings
index f1351829a..28d0c9413 100644
--- a/macosx/it.lproj/Localizable.strings
+++ b/macosx/it.lproj/Localizable.strings
@@ -38,6 +38,9 @@
"1080p HD" = "1080p HD";
/* Add preset window -> picture setting */
+"1440p 2.5K Quad HD" = "1440p 2.5K Quad HD";
+
+/* Add preset window -> picture setting */
"2160p 4K Ultra HD" = "2160p 4K Ultra HD";
/* Add preset window -> picture setting */