Fixed timer bug

This commit is contained in:
pagefault
2001-05-22 17:40:06 +00:00
parent 1b4b249037
commit 83118af42e
2 changed files with 16 additions and 0 deletions

View File

@@ -219,6 +219,20 @@ extern "C" void MinimizeWindow()
IsMinimized = TRUE;
}
extern "C" void ReInitTimer()
{
if (AlternateTimer == 0)
{
QueryPerformanceCounter((LARGE_INTEGER*)&start);
QueryPerformanceCounter((LARGE_INTEGER*)&start2);
}
else
{
start = timeGetTime();
start2 = timeGetTime();
}
}
extern "C" BYTE MouseWheel;
BOOL InputRead(void)