(iOS) Small cleanups

This commit is contained in:
twinaphex 2015-03-11 19:13:54 +01:00
parent 522c65e27f
commit 9700abb1ba

View File

@ -378,12 +378,12 @@ void notify_content_loaded(void)
- (void)refreshSystemConfig - (void)refreshSystemConfig
{ {
// Get enabled orientations /* Get enabled orientations */
apple_frontend_settings.orientation_flags = UIInterfaceOrientationMaskAll; apple_frontend_settings.orientation_flags = UIInterfaceOrientationMaskAll;
if (strcmp(apple_frontend_settings.orientations, "landscape") == 0) if (!strcmp(apple_frontend_settings.orientations, "landscape"))
apple_frontend_settings.orientation_flags = UIInterfaceOrientationMaskLandscape; apple_frontend_settings.orientation_flags = UIInterfaceOrientationMaskLandscape;
else if (strcmp(apple_frontend_settings.orientations, "portrait") == 0) else if (!strcmp(apple_frontend_settings.orientations, "portrait"))
apple_frontend_settings.orientation_flags = UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown; apple_frontend_settings.orientation_flags = UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown;
// Set bluetooth mode // Set bluetooth mode