diff --git a/main.c b/main.c index a758598..4922021 100644 --- a/main.c +++ b/main.c @@ -357,7 +357,6 @@ HRESULT __stdcall ddraw_WaitForVerticalBlank(IDirectDrawImpl *This, DWORD a, HAN #if _DEBUG printf("DirectDraw::WaitForVerticalBlank(This=%p, ...)\n", This); #endif - WaitForSingleObject(This->render.ev, INFINITE); return DD_OK; } diff --git a/render.c b/render.c index 8530003..dd6508d 100644 --- a/render.c +++ b/render.c @@ -84,8 +84,6 @@ DWORD WINAPI render_main(void) while(ddraw->render.run) { - ResetEvent(ddraw->render.ev); - scale_w = (float)ddraw->width/tex_width; scale_h = (float)ddraw->height/tex_height; diff --git a/surface.c b/surface.c index a90426c..76ad6ae 100644 --- a/surface.c +++ b/surface.c @@ -96,6 +96,7 @@ HRESULT __stdcall ddraw_surface_Blt(IDirectDrawSurfaceImpl *This, LPRECT lpDestR if(This->caps & DDSCAPS_PRIMARYSURFACE) { WaitForSingleObject(ddraw->render.ev, INFINITE); + ResetEvent(ddraw->render.ev); } if(Source)