From 0ee9b877421271b59b899ea3dffef6e160841f62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20B=C3=A9trisey?= Date: Sat, 27 Dec 2014 03:21:32 +0100 Subject: [PATCH] UIScreen.bounds.size doesn't give the real resolution We need to multiply it by the UIScreen.scale --- Limelight/ViewControllers/SettingsViewController.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Limelight/ViewControllers/SettingsViewController.m b/Limelight/ViewControllers/SettingsViewController.m index 0d9ebaba..7e6cea6d 100644 --- a/Limelight/ViewControllers/SettingsViewController.m +++ b/Limelight/ViewControllers/SettingsViewController.m @@ -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]