mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
- Initialize windows timer to lowest possible value during timer initialization (by tazpn)
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5185 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -363,6 +363,8 @@ BOOLEAN InitializeJA2Clock()
|
|||||||
DebugMsg( TOPIC_JA2, DBG_LEVEL_3, "Could not get performance frequency");
|
DebugMsg( TOPIC_JA2, DBG_LEVEL_3, "Could not get performance frequency");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
timeBeginPeriod(gtc.wPeriodMin);
|
||||||
|
|
||||||
InitializeCriticalSection(&gcsNotifyLock);
|
InitializeCriticalSection(&gcsNotifyLock);
|
||||||
|
|
||||||
if (IsHiSpeedClockMode())
|
if (IsHiSpeedClockMode())
|
||||||
@@ -420,6 +422,8 @@ void ShutdownJA2Clock(void)
|
|||||||
timeKillEvent( gTimerID );
|
timeKillEvent( gTimerID );
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
timeEndPeriod(gtc.wPeriodMin);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user