mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
Make frame timing consistent between movie players
This commit is contained in:
parent
bf2e7c210d
commit
d2f8c57136
1 changed files with 2 additions and 2 deletions
|
@ -642,7 +642,7 @@ public:
|
|||
AudioTrack.SetClock(clock);
|
||||
|
||||
bool stop = false;
|
||||
if (clock > nextframetime)
|
||||
if (clock >= nextframetime)
|
||||
{
|
||||
nextframetime += nsecsperframe;
|
||||
|
||||
|
@ -927,7 +927,7 @@ public:
|
|||
int frame = int(clock / nFrameNs);
|
||||
|
||||
twod->ClearScreen();
|
||||
if (frame > nFrame)
|
||||
if (frame >= nFrame)
|
||||
{
|
||||
nFrame++;
|
||||
Smacker_GetNextFrame(hSMK);
|
||||
|
|
Loading…
Reference in a new issue