Explorar o código

Fixed building on tvOS

Sam Lantinga %!s(int64=7) %!d(string=hai) anos
pai
achega
af823cc1d9
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      src/video/uikit/SDL_uikitmodes.m

+ 2 - 0
src/video/uikit/SDL_uikitmodes.m

@@ -324,6 +324,7 @@ UIKit_QuitModes(_THIS)
     }
 }
 
+#if !TARGET_OS_TV
 void SDL_OnApplicationDidChangeStatusBarOrientation()
 {
     BOOL isLandscape = UIInterfaceOrientationIsLandscape([UIApplication sharedApplication].statusBarOrientation);
@@ -372,6 +373,7 @@ void SDL_OnApplicationDidChangeStatusBarOrientation()
         SDL_SendDisplayEvent(display, SDL_DISPLAYEVENT_ORIENTATION, orientation);
     }
 }
+#endif /* !TARGET_OS_TV */
 
 #endif /* SDL_VIDEO_DRIVER_UIKIT */