mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-02-16 10:31:02 +00:00
ui fix resolutionSelector auto width
This commit is contained in:
committed by
Cameron Gutman
parent
29ba055024
commit
b7ba94f77a
@@ -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