Skip to content

Commit

Permalink
bug fix for gdi frame skip, keep trying until last frame was drawn
Browse files Browse the repository at this point in the history
  • Loading branch information
FunkyFr3sh committed Nov 20, 2018
1 parent 5829453 commit 91281e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ddraw.rc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#define VERSION_MAJOR 1
#define VERSION_MINOR 3
#define VERSION_BUILD 0
#define VERSION_REVISION 0
#define VERSION_REVISION 1

#define VERSION VERSION_MAJOR, VERSION_MINOR, VERSION_BUILD, VERSION_REVISION
#define VERSION_STRING ver_str(VERSION_MAJOR, VERSION_MINOR, VERSION_BUILD, VERSION_REVISION)
Expand Down
2 changes: 2 additions & 0 deletions src/render_soft.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ DWORD WINAPI render_soft_main(void)
DWORD curTick = timeGetTime();
if (lastTick + frameLength > curTick)
{
ReleaseSemaphore(ddraw->render.sem, 1, NULL);
SetEvent(ddraw->render.ev);
SwitchToThread();
continue;
}
lastTick = curTick;
Expand Down

0 comments on commit 91281e0

Please sign in to comment.