mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
iOS: replace a deprecated function call with a non-deprecated equivalent.
This commit is contained in:
parent
7289e5e215
commit
df49e2a572
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user