mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-10-25 21:40:08 +00:00
Enforce 256x256 minimum for streaming
This commit is contained in:
1 parent
d12c103117
commit
bfdfdc3050
1 file changed
+4
@@ -352,6 +352,10 @@ BOOL isCustomResolution(CGSize res) {
|
|||||||
width = MIN(width, maxResolutionDimension);
|
width = MIN(width, maxResolutionDimension);
|
||||||
height = MIN(height, maxResolutionDimension);
|
height = MIN(height, maxResolutionDimension);
|
||||||
|
|
||||||
|
// Cap to minimum valid dimensions
|
||||||
|
width = MAX(width, 256);
|
||||||
|
height = MAX(height, 256);
|
||||||
|
|
||||||
resolutionTable[RESOLUTION_TABLE_CUSTOM_INDEX] = CGSizeMake(width, height);
|
resolutionTable[RESOLUTION_TABLE_CUSTOM_INDEX] = CGSizeMake(width, height);
|
||||||
[self updateBitrate];
|
[self updateBitrate];
|
||||||
[self updateCustomResolutionText];
|
[self updateCustomResolutionText];
|
||||||
|
|||||||
Reference in new issue
Block a user