Battery status only works on systems with one, silly me
This commit is contained in:
@@ -338,14 +338,19 @@ static char *int_to_asc(size_t number)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __WIN32__
|
#ifdef __WIN32__
|
||||||
int WinCheckBatteryTime();
|
signed int WinCheckBatteryTime();
|
||||||
extern unsigned int MessageOn;
|
extern unsigned int MessageOn;
|
||||||
extern unsigned int MsgCount;
|
extern unsigned int MsgCount;
|
||||||
|
|
||||||
void DisplayBatteryStatus()
|
void DisplayBatteryStatus()
|
||||||
{
|
{
|
||||||
Msgptr = seconds_to_asc(WinCheckBatteryTime());
|
signed int batteryTime = WinCheckBatteryTime();
|
||||||
MsgCount = 300;
|
|
||||||
MessageOn = 1;
|
if (batteryTime>0)
|
||||||
|
{
|
||||||
|
Msgptr = seconds_to_asc(batteryTime);
|
||||||
|
MsgCount = 50000;
|
||||||
|
MessageOn = 2000;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -3089,7 +3089,7 @@ void InitDebugger()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned int WinCheckBatteryTime()
|
signed int WinCheckBatteryTime()
|
||||||
{
|
{
|
||||||
SYSTEM_POWER_STATUS SysPowerStat;
|
SYSTEM_POWER_STATUS SysPowerStat;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user