mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 06:44:27 +00:00
move win32 check to frontend driver
This commit is contained in:
parent
54a569a085
commit
0551e2dea8
@ -214,6 +214,10 @@ enum frontend_powerstate frontend_win32_get_powerstate(int *seconds, int *percen
|
|||||||
*percent = (int)status.BatteryLifePercent;
|
*percent = (int)status.BatteryLifePercent;
|
||||||
*seconds = (int)status.BatteryLifeTime;
|
*seconds = (int)status.BatteryLifeTime;
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
if (*percent == 255)
|
||||||
|
*percent = 0;
|
||||||
|
#endif
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2623,10 +2623,6 @@ static void xmb_frame(void *data)
|
|||||||
|
|
||||||
*msg = '\0';
|
*msg = '\0';
|
||||||
|
|
||||||
#ifdef _WIN32
|
|
||||||
if (percent == 255)
|
|
||||||
percent = 0;
|
|
||||||
#endif
|
|
||||||
if (percent > 0)
|
if (percent > 0)
|
||||||
{
|
{
|
||||||
size_t x_pos = xmb->icon.size / 6;
|
size_t x_pos = xmb->icon.size / 6;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user