mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-15 06:04:49 +01:00
delay render thread for now to prevent race condition on startup
This commit is contained in:
parent
eb1c261ac7
commit
850dfda0f5
2
render.c
2
render.c
@ -28,6 +28,8 @@ BOOL detect_cutscene();
|
||||
|
||||
DWORD WINAPI render_main(void)
|
||||
{
|
||||
Sleep(500);
|
||||
|
||||
int i,j;
|
||||
HGLRC hRC;
|
||||
|
||||
|
@ -51,6 +51,8 @@ BOOL detect_cutscene()
|
||||
|
||||
DWORD WINAPI render_soft_main(void)
|
||||
{
|
||||
Sleep(500);
|
||||
|
||||
PBITMAPINFO bmi = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(BITMAPINFOHEADER) + sizeof(RGBQUAD) * 256);
|
||||
|
||||
bmi->bmiHeader.biSize = sizeof(BITMAPINFOHEADER);
|
||||
|
@ -121,9 +121,8 @@ HRESULT __stdcall ddraw_surface_Blt(IDirectDrawSurfaceImpl *This, LPRECT lpDestR
|
||||
for(y=y0; y<y1; ++y, to+=This->width, from+=Source->width)
|
||||
memcpy(to, from, s);
|
||||
|
||||
LeaveCriticalSection(&ddraw->cs);
|
||||
|
||||
ReleaseSemaphore(ddraw->render.sem, 1, NULL);
|
||||
LeaveCriticalSection(&ddraw->cs);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user