diff options
author | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2015-11-24 17:38:55 +0300 |
---|---|---|
committer | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2015-11-24 17:41:11 +0300 |
commit | 34d6f335f68a7ced6ef0f34d94062a6aa5539202 (patch) | |
tree | f2c644788d403acfdf1e1039f46519b64e32a6b9 /platform | |
parent | 1dc50b4ce518ba250fc3bacea447e82b23b6f3dd (diff) |
Implementing IsTablet for ios.
Diffstat (limited to 'platform')
-rw-r--r-- | platform/platform_ios.mm | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/platform_ios.mm b/platform/platform_ios.mm index b51b14dcb0..e12d91ff25 100644 --- a/platform/platform_ios.mm +++ b/platform/platform_ios.mm @@ -202,6 +202,8 @@ CustomIOSPlatform::CustomIOSPlatform() { NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; + m_isTablet = (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad); + NSBundle * bundle = [NSBundle mainBundle]; NSString * path = [bundle resourcePath]; m_resourcesDir = [path UTF8String]; |