| Summary: | SDL_GetPowerInfo returns implausible batter percentage value on iOS | ||
|---|---|---|---|
| Product: | SDL | Reporter: | Felix Hädicke <felixhaedicke> |
| Component: | main | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | icculus |
| Version: | HG 2.1 | ||
| Hardware: | iPhone/iPod touch | ||
| OS: | iOS 6 | ||
| Attachments: | Bugfix: Corrected formula for calculating battery percentage with UIKit | ||
This patch is now https://hg.libsdl.org/SDL/rev/01a7b69c4fb7 ...thanks! --ryan. |
Created attachment 1558 [details] Bugfix: Corrected formula for calculating battery percentage with UIKit SDL_GetPowerInfo returns always a value >= 50 %, most of the time 100 %, as percentage of battery life left This is caused by an incorrect formula for calculating the percentage value. The attached patch should fix it.