[Scummvm-cvs-logs] scummvm master -> 2b55837650c4229dc3d75b660cecfc7a3292e5e0

lordhoto lordhoto at gmail.com
Fri Oct 12 17:11:16 CEST 2012


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
2b55837650 IPHONE: Add support for "retina" displays.


Commit: 2b55837650c4229dc3d75b660cecfc7a3292e5e0
    https://github.com/scummvm/scummvm/commit/2b55837650c4229dc3d75b660cecfc7a3292e5e0
Author: Johannes Schickel (lordhoto at scummvm.org)
Date: 2012-10-12T08:08:51-07:00

Commit Message:
IPHONE: Add support for "retina" displays.

Thanks to peres for testing this.

Changed paths:
    backends/platform/iphone/iphone_video.mm



diff --git a/backends/platform/iphone/iphone_video.mm b/backends/platform/iphone/iphone_video.mm
index 2ae1b0e..0bfae30 100644
--- a/backends/platform/iphone/iphone_video.mm
+++ b/backends/platform/iphone/iphone_video.mm
@@ -161,9 +161,9 @@ const char *iPhone_getDocumentsDir() {
 - (id)initWithFrame:(struct CGRect)frame {
 	self = [super initWithFrame: frame];
 
-	if ([[UIScreen mainScreen] respondsToSelector: NSSelectorFromString(@"scale")]) {
-		if ([self respondsToSelector: NSSelectorFromString(@"contentScaleFactor")]) {
-			//self.contentScaleFactor = [[UIScreen mainScreen] scale];
+	if ([[UIScreen mainScreen] respondsToSelector:@selector(scale)]) {
+		if ([self respondsToSelector:@selector(setContentScaleFactor:)]) {
+			[self setContentScaleFactor:[[UIScreen mainScreen] scale]];
 		}
 	}
 






More information about the Scummvm-git-logs mailing list