Video player fix (related to #668)

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1437 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
avolkov
2005-01-07 23:03:58 +00:00
parent d53b4719a8
commit db30708f7e
+2 -1
View File
@@ -463,7 +463,8 @@ vp_GetCanvasLine (TFB_VideoDecoder* decoder, uint32 line)
static uint32 static uint32
vp_GetTicks (TFB_VideoDecoder* decoder) vp_GetTicks (TFB_VideoDecoder* decoder)
{ {
return GetTimeCounter () * 1000 / ONE_SECOND; uint32 ctr = GetTimeCounter ();
return (ctr / ONE_SECOND) * 1000 + ((ctr % ONE_SECOND) * 1000) / ONE_SECOND;
(void)decoder; // gobble up compiler warning (void)decoder; // gobble up compiler warning
} }