mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-20 22:16:49 +01:00
s/iPhoneOS/iOS
This commit is contained in:
parent
245e125e0f
commit
ccce6fb302
@ -88,7 +88,7 @@ SDL_GetPowerInfo_UIKit(SDL_PowerState * state, int *seconds, int *percent)
|
|||||||
|
|
||||||
const float level = [uidev batteryLevel];
|
const float level = [uidev batteryLevel];
|
||||||
*percent = ( (level < 0.0f) ? -1 : ((int) ((level * 100) + 0.5f)) );
|
*percent = ( (level < 0.0f) ? -1 : ((int) ((level * 100) + 0.5f)) );
|
||||||
return SDL_TRUE; /* always the definitive answer on iPhoneOS. */
|
return SDL_TRUE; /* always the definitive answer on iOS. */
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* SDL_POWER_UIKIT */
|
#endif /* SDL_POWER_UIKIT */
|
||||||
|
Loading…
Reference in New Issue
Block a user