iOS: replace a deprecated function call with a non-deprecated equivalent.
This commit is contained in:
parent
e36f189289
commit
9d1f29993c
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue