Simplify SDL_IsPhone (#16080)

This commit is contained in:
Anthony
2026-08-02 08:38:36 -07:00
committed by GitHub
parent fcd11827f4
commit 228fb8e630
+1 -7
View File
@@ -848,13 +848,7 @@ const char *SDL_GetPlatform(void)
bool SDL_IsPhone(void)
{
#if defined(SDL_PLATFORM_ANDROID) || \
(defined(SDL_PLATFORM_IOS) && !defined(SDL_PLATFORM_VISIONOS))
if (!SDL_IsTablet() && !SDL_IsTV()) {
return true;
}
#endif
return false;
return SDL_GetDeviceFormFactor() == SDL_FORMFACTOR_PHONE;
}
bool SDL_IsTablet(void)