mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-06-17 14:11:35 +00:00
Enforce 256x256 minimum for streaming
This commit is contained in:
@@ -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