aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/iphone
diff options
context:
space:
mode:
authorJohannes Schickel2012-10-12 17:08:51 +0200
committerJohannes Schickel2012-10-12 17:08:51 +0200
commit2b55837650c4229dc3d75b660cecfc7a3292e5e0 (patch)
treede6197048b33b5fe96b5ce8d2e3c0662c7a04026 /backends/platform/iphone
parent1e200620d673af4acdd2d128ed6e390df001aacf (diff)
downloadscummvm-rg350-2b55837650c4229dc3d75b660cecfc7a3292e5e0.tar.gz
scummvm-rg350-2b55837650c4229dc3d75b660cecfc7a3292e5e0.tar.bz2
scummvm-rg350-2b55837650c4229dc3d75b660cecfc7a3292e5e0.zip
IPHONE: Add support for "retina" displays.
Thanks to peres for testing this.
Diffstat (limited to 'backends/platform/iphone')
-rw-r--r--backends/platform/iphone/iphone_video.mm6
1 files changed, 3 insertions, 3 deletions
diff --git a/backends/platform/iphone/iphone_video.mm b/backends/platform/iphone/iphone_video.mm
index 2ae1b0e692..0bfae30fc7 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]];
}
}