瀏覽代碼

iOS: replace a deprecated function call with a non-deprecated equivalent.

Alex Szpakowski 5 年之前
父節點
當前提交
df49e2a572
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/video/uikit/SDL_uikitvideo.m

+ 1 - 1
src/video/uikit/SDL_uikitvideo.m

@@ -285,7 +285,7 @@ void SDL_NSLog(const char *text)
  */
  */
 SDL_bool SDL_IsIPad(void)
 SDL_bool SDL_IsIPad(void)
 {
 {
-    return (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad);
+    return ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPad);
 }
 }
 
 
 #endif /* SDL_VIDEO_DRIVER_UIKIT */
 #endif /* SDL_VIDEO_DRIVER_UIKIT */