s/iPhoneOS/iOS
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