diff options
author | Johannes Schickel | 2012-10-12 17:08:51 +0200 |
---|---|---|
committer | Johannes Schickel | 2012-10-12 17:08:51 +0200 |
commit | 2b55837650c4229dc3d75b660cecfc7a3292e5e0 (patch) | |
tree | de6197048b33b5fe96b5ce8d2e3c0662c7a04026 /backends/platform/iphone | |
parent | 1e200620d673af4acdd2d128ed6e390df001aacf (diff) | |
download | scummvm-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.mm | 6 |
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]]; } } |