From 1f450834ed0b188ce24748bc4b2ede8af4cf1a09 Mon Sep 17 00:00:00 2001 From: Brad Parker Date: Tue, 20 Dec 2016 01:25:32 -0500 Subject: [PATCH] unknown battery level on windows should not be displayed --- deps/glslang/glslang | 2 +- menu/drivers/xmb.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/deps/glslang/glslang b/deps/glslang/glslang index ec2e27adf8..b56f4ac72c 160000 --- a/deps/glslang/glslang +++ b/deps/glslang/glslang @@ -1 +1 @@ -Subproject commit ec2e27adf86a911c5af6c676a539166b5674a09d +Subproject commit b56f4ac72c57f5c50f14ddb0bf1f78eaaef21c2b diff --git a/menu/drivers/xmb.c b/menu/drivers/xmb.c index dcbaeedf14..62d9f983e2 100644 --- a/menu/drivers/xmb.c +++ b/menu/drivers/xmb.c @@ -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';