Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
iOS: replace a deprecated function call with a non-deprecated equival…
…ent.
  • Loading branch information
slime73 committed Oct 27, 2019
1 parent 7289e5e commit df49e2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/uikit/SDL_uikitvideo.m
Expand Up @@ -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 */
Expand Down

0 comments on commit df49e2a

Please sign in to comment.