mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-04 09:18:38 +00:00
IPHONE: Add support for "retina" displays.
Thanks to peres for testing this.
This commit is contained in:
parent
1e200620d6
commit
2b55837650
@ -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]];
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user