mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-10-22 08:07:46 +00:00
ui fix resolutionSelector auto width
This commit is contained in:
1 parent
29ba055024
commit
b7ba94f77a
1 file changed
+1
@@ -318,6 +318,7 @@ CGSize resolutionTable[RESOLUTION_TABLE_SIZE];
|
||||
if (!customResolutionEqualsDefaultResolution) {
|
||||
NSString *newTitle = [NSString stringWithFormat:@"Custom %dx%d", (int) resolutionTable[RESOLUTION_TABLE_CUSTOM_INDEX].width, (int) resolutionTable[RESOLUTION_TABLE_CUSTOM_INDEX].height];
|
||||
[self.resolutionSelector setTitle:newTitle forSegmentAtIndex:[self.resolutionSelector numberOfSegments] - 1];
|
||||
self.resolutionSelector.apportionsSegmentWidthsByContent = YES; // to update the width
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user