mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-06-17 06:01:13 +00:00
Add 4K resolution option. Fixes #364
This commit is contained in:
@@ -134,6 +134,9 @@ static const int bitrateTable[] = {
|
|||||||
case 1080:
|
case 1080:
|
||||||
resolution = 2;
|
resolution = 2;
|
||||||
break;
|
break;
|
||||||
|
case 2160:
|
||||||
|
resolution = 3;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Only show the 120 FPS option if we have a > 60-ish Hz display
|
// Only show the 120 FPS option if we have a > 60-ish Hz display
|
||||||
@@ -228,7 +231,7 @@ static const int bitrateTable[] = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
- (NSInteger) getChosenStreamHeight {
|
- (NSInteger) getChosenStreamHeight {
|
||||||
const int resolutionTable[] = { 360, 720, 1080 };
|
const int resolutionTable[] = { 360, 720, 1080, 2160 };
|
||||||
return resolutionTable[[self.resolutionSelector selectedSegmentIndex]];
|
return resolutionTable[[self.resolutionSelector selectedSegmentIndex]];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -93,6 +93,7 @@
|
|||||||
<segment title="360p"/>
|
<segment title="360p"/>
|
||||||
<segment title="720p"/>
|
<segment title="720p"/>
|
||||||
<segment title="1080p"/>
|
<segment title="1080p"/>
|
||||||
|
<segment title="4K"/>
|
||||||
</segments>
|
</segments>
|
||||||
<color key="tintColor" red="0.6716768741607666" green="0.61711704730987549" blue="0.99902987480163574" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
<color key="tintColor" red="0.6716768741607666" green="0.61711704730987549" blue="0.99902987480163574" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||||
</segmentedControl>
|
</segmentedControl>
|
||||||
|
|||||||
@@ -111,6 +111,7 @@
|
|||||||
<segment title="360p"/>
|
<segment title="360p"/>
|
||||||
<segment title="720p"/>
|
<segment title="720p"/>
|
||||||
<segment title="1080p"/>
|
<segment title="1080p"/>
|
||||||
|
<segment title="4K"/>
|
||||||
</segments>
|
</segments>
|
||||||
<color key="tintColor" red="0.6716768741607666" green="0.61711704730987549" blue="0.99902987480163574" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
<color key="tintColor" red="0.6716768741607666" green="0.61711704730987549" blue="0.99902987480163574" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||||
</segmentedControl>
|
</segmentedControl>
|
||||||
|
|||||||
Reference in New Issue
Block a user