unknown battery level on windows should not be displayed

This commit is contained in:
Brad Parker 2016-12-20 01:25:32 -05:00
parent 1942d29a33
commit 1f450834ed
2 changed files with 5 additions and 1 deletions

@ -1 +1 @@
Subproject commit ec2e27adf86a911c5af6c676a539166b5674a09d
Subproject commit b56f4ac72c57f5c50f14ddb0bf1f78eaaef21c2b

View File

@ -2658,6 +2658,10 @@ static void xmb_frame(void *data)
state = frontend->get_powerstate(&seconds, &percent);
time_to_update = false;
last_time = current_time;
#ifdef _WIN32
if (percent == 255)
percent = 0;
#endif
}
*msg = '\0';