From 797fa0f49240900f79ddba6933bf05857cf233b6 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Mon, 27 May 2019 10:37:26 -0700 Subject: [PATCH] Add 4K resolution option. Fixes #364 --- Limelight/ViewControllers/SettingsViewController.m | 5 ++++- iPad.storyboard | 1 + iPhone.storyboard | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Limelight/ViewControllers/SettingsViewController.m b/Limelight/ViewControllers/SettingsViewController.m index 21fdb7e..2174fcc 100644 --- a/Limelight/ViewControllers/SettingsViewController.m +++ b/Limelight/ViewControllers/SettingsViewController.m @@ -134,6 +134,9 @@ static const int bitrateTable[] = { case 1080: resolution = 2; break; + case 2160: + resolution = 3; + break; } // Only show the 120 FPS option if we have a > 60-ish Hz display @@ -228,7 +231,7 @@ static const int bitrateTable[] = { } - (NSInteger) getChosenStreamHeight { - const int resolutionTable[] = { 360, 720, 1080 }; + const int resolutionTable[] = { 360, 720, 1080, 2160 }; return resolutionTable[[self.resolutionSelector selectedSegmentIndex]]; } diff --git a/iPad.storyboard b/iPad.storyboard index 0b0d562..8f1c0c3 100644 --- a/iPad.storyboard +++ b/iPad.storyboard @@ -93,6 +93,7 @@ + diff --git a/iPhone.storyboard b/iPhone.storyboard index 59e04b3..e62dc80 100644 --- a/iPhone.storyboard +++ b/iPhone.storyboard @@ -111,6 +111,7 @@ +