1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

Flip scrolling issues around, it'll slow on load instead of jumping fast

This commit is contained in:
Toni Spets 2010-11-18 16:46:22 +02:00
parent d066962617
commit 6b237c5ba1
3 changed files with 1 additions and 3 deletions

1
main.c
View File

@ -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;
}

View File

@ -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;

View File

@ -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)