mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-06-17 22:23: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:
@@ -48,8 +48,8 @@ static NSString* bitrateFormat = @"Bitrate: %d kbps";
|
|||||||
NSInteger width;
|
NSInteger width;
|
||||||
if ([self.resolutionSelector selectedSegmentIndex] == 2) {
|
if ([self.resolutionSelector selectedSegmentIndex] == 2) {
|
||||||
// Get screen native resolution
|
// Get screen native resolution
|
||||||
height = [UIScreen mainScreen].bounds.size.height;
|
height = [UIScreen mainScreen].bounds.size.height * [UIScreen mainScreen].scale;
|
||||||
width = [UIScreen mainScreen].bounds.size.width;
|
width = [UIScreen mainScreen].bounds.size.width * [UIScreen mainScreen].scale;
|
||||||
|
|
||||||
UIAlertView *alertResolution = [[UIAlertView alloc] initWithTitle:@"Native resolution"
|
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]
|
message:[NSString stringWithFormat:@"You must select the following resolution in the game settings : %lix%li", (long)width, (long)height]
|
||||||
|
|||||||
Reference in New Issue
Block a user