If a Linux laptop has been configured to stop charging the battery at
a value below 100% (to increase battery longevity by preventing
over-charging), and is charged to the configured maximum, SDL reports
that as SDL_POWERSTATE_UNKNOWN but still reports a percentage.
I wouldn't have noticed this, except that my laptop happens to make the assertion fail most of the time :-)
Merge Checklist
[x] the PR has been reviewed and all comments are resolved
If a Linux laptop has been configured to stop charging the battery at a value below 100% (to increase battery longevity by preventing over-charging), and is charged to the configured maximum, SDL reports that as SDL_POWERSTATE_UNKNOWN but still reports a percentage.
I wouldn't have noticed this, except that my laptop happens to make the assertion fail most of the time :-)
Merge Checklist
closes #<issue-number>
to automatically close an issue