(iOS) Don't use UIInterfaceOrientationUnknown since it creates a dependency

on iOS 8 SDK
This commit is contained in:
twinaphex 2014-11-09 17:38:26 +01:00
parent a609fb5c94
commit 50e21d7432
2 changed files with 4 additions and 5 deletions

View File

@ -172,10 +172,8 @@ static void apple_gfx_ctx_flush_buffer(void);
case UIInterfaceOrientationLandscapeRight:
return (apple_frontend_settings.orientation_flags & UIInterfaceOrientationMaskLandscapeRight);
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_8_0
case UIInterfaceOrientationUnknown:
default:
return (apple_frontend_settings.orientation_flags & UIInterfaceOrientationMaskAll);
#endif
}
return YES;

View File

@ -16,8 +16,9 @@
#ifndef _MENU_DISP_IOS_H
#define _MENU_DISP_IOS_H
typedef struct ios_handle {
void (*switch_to_ios)(void);
typedef struct ios_handle
{
void (*switch_to_ios)(void);
} ios_handle_t;
#endif