From df49e2a57234abd517c1e3fa16c50c1968b8d432 Mon Sep 17 00:00:00 2001 From: Alex Szpakowski Date: Sun, 27 Oct 2019 11:41:11 -0300 Subject: [PATCH] iOS: replace a deprecated function call with a non-deprecated equivalent. --- src/video/uikit/SDL_uikitvideo.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/uikit/SDL_uikitvideo.m b/src/video/uikit/SDL_uikitvideo.m index dedd8989b..46d6059fe 100644 --- a/src/video/uikit/SDL_uikitvideo.m +++ b/src/video/uikit/SDL_uikitvideo.m @@ -285,7 +285,7 @@ void SDL_NSLog(const char *text) */ SDL_bool SDL_IsIPad(void) { - return (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad); + return ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPad); } #endif /* SDL_VIDEO_DRIVER_UIKIT */