mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
bug fix for gdi frame skip, keep trying until last frame was drawn
This commit is contained in:
parent
5829453a1a
commit
91281e0530
2
ddraw.rc
2
ddraw.rc
@ -4,7 +4,7 @@
|
|||||||
#define VERSION_MAJOR 1
|
#define VERSION_MAJOR 1
|
||||||
#define VERSION_MINOR 3
|
#define VERSION_MINOR 3
|
||||||
#define VERSION_BUILD 0
|
#define VERSION_BUILD 0
|
||||||
#define VERSION_REVISION 0
|
#define VERSION_REVISION 1
|
||||||
|
|
||||||
#define VERSION VERSION_MAJOR, VERSION_MINOR, VERSION_BUILD, VERSION_REVISION
|
#define VERSION VERSION_MAJOR, VERSION_MINOR, VERSION_BUILD, VERSION_REVISION
|
||||||
#define VERSION_STRING ver_str(VERSION_MAJOR, VERSION_MINOR, VERSION_BUILD, VERSION_REVISION)
|
#define VERSION_STRING ver_str(VERSION_MAJOR, VERSION_MINOR, VERSION_BUILD, VERSION_REVISION)
|
||||||
|
@ -60,7 +60,9 @@ DWORD WINAPI render_soft_main(void)
|
|||||||
DWORD curTick = timeGetTime();
|
DWORD curTick = timeGetTime();
|
||||||
if (lastTick + frameLength > curTick)
|
if (lastTick + frameLength > curTick)
|
||||||
{
|
{
|
||||||
|
ReleaseSemaphore(ddraw->render.sem, 1, NULL);
|
||||||
SetEvent(ddraw->render.ev);
|
SetEvent(ddraw->render.ev);
|
||||||
|
SwitchToThread();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
lastTick = curTick;
|
lastTick = curTick;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user