Battery status only works on systems with one, silly me

This commit is contained in:
pagefault
2005-10-01 22:23:05 +00:00
parent ab18f4bc8a
commit 0293ec532d
2 changed files with 10 additions and 5 deletions

View File

@@ -338,14 +338,19 @@ static char *int_to_asc(size_t number)
}
#ifdef __WIN32__
int WinCheckBatteryTime();
signed int WinCheckBatteryTime();
extern unsigned int MessageOn;
extern unsigned int MsgCount;
void DisplayBatteryStatus()
{
Msgptr = seconds_to_asc(WinCheckBatteryTime());
MsgCount = 300;
MessageOn = 1;
signed int batteryTime = WinCheckBatteryTime();
if (batteryTime>0)
{
Msgptr = seconds_to_asc(batteryTime);
MsgCount = 50000;
MessageOn = 2000;
}
}
#endif

View File

@@ -3089,7 +3089,7 @@ void InitDebugger()
}
}
unsigned int WinCheckBatteryTime()
signed int WinCheckBatteryTime()
{
SYSTEM_POWER_STATUS SysPowerStat;