Fixed timer bug
This commit is contained in:
@@ -176,6 +176,7 @@ EXTSYM numlockptr
|
||||
%ifdef __WIN32__
|
||||
EXTSYM CheckPriority
|
||||
EXTSYM CheckAlwaysOnTop
|
||||
EXTSYM ReInitTimer
|
||||
%endif
|
||||
%ifdef __LINUX__
|
||||
EXTSYM numlockptr
|
||||
@@ -3320,6 +3321,7 @@ DisplayBoxes:
|
||||
%ifdef __WIN32__
|
||||
pushad
|
||||
call CheckPriority
|
||||
call ReInitTimer
|
||||
popad
|
||||
%endif
|
||||
jmp .finstuff
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user