mirror of https://github.com/encounter/SDL.git
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];
|
||||
*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 */
|
||||
|
|
Loading…
Reference in New Issue