mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2025-07-03 00:06:31 +00:00
UIScreen.bounds.size doesn't give the real resolution
We need to multiply it by the UIScreen.scale
This commit is contained in:
parent
5968d511b2
commit
0ee9b87742
@ -48,8 +48,8 @@ static NSString* bitrateFormat = @"Bitrate: %d kbps";
|
||||
NSInteger width;
|
||||
if ([self.resolutionSelector selectedSegmentIndex] == 2) {
|
||||
// Get screen native resolution
|
||||
height = [UIScreen mainScreen].bounds.size.height;
|
||||
width = [UIScreen mainScreen].bounds.size.width;
|
||||
height = [UIScreen mainScreen].bounds.size.height * [UIScreen mainScreen].scale;
|
||||
width = [UIScreen mainScreen].bounds.size.width * [UIScreen mainScreen].scale;
|
||||
|
||||
UIAlertView *alertResolution = [[UIAlertView alloc] initWithTitle:@"Native resolution"
|
||||
message:[NSString stringWithFormat:@"You must select the following resolution in the game settings : %lix%li", (long)width, (long)height]
|
||||
|
Loading…
x
Reference in New Issue
Block a user