Merge pull request #1041 from lioncash/ioswarn
iOS: Fix switch warning in RAGameView.m
This commit is contained in:
commit
68e1e3add8
|
@ -14,6 +14,7 @@
|
|||
* If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#import <Availability.h>
|
||||
#import "RetroArch_Apple.h"
|
||||
#include "../../general.h"
|
||||
|
||||
|
@ -198,6 +199,11 @@ static GLContextClass* g_context;
|
|||
return (apple_frontend_settings.orientation_flags & UIInterfaceOrientationMaskLandscapeLeft);
|
||||
case UIInterfaceOrientationLandscapeRight:
|
||||
return (apple_frontend_settings.orientation_flags & UIInterfaceOrientationMaskLandscapeRight);
|
||||
|
||||
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_8_0
|
||||
case UIInterfaceOrientationUnknown:
|
||||
return (apple_frontend_settings.orientation_flags & UIInterfaceOrientationMaskAll);
|
||||
#endif
|
||||
}
|
||||
|
||||
return YES;
|
||||
|
|
Loading…
Reference in New Issue