mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +01:00
Flip scrolling issues around, it'll slow on load instead of jumping fast
This commit is contained in:
parent
d066962617
commit
6b237c5ba1
1
main.c
1
main.c
@ -357,7 +357,6 @@ HRESULT __stdcall ddraw_WaitForVerticalBlank(IDirectDrawImpl *This, DWORD a, HAN
|
|||||||
#if _DEBUG
|
#if _DEBUG
|
||||||
printf("DirectDraw::WaitForVerticalBlank(This=%p, ...)\n", This);
|
printf("DirectDraw::WaitForVerticalBlank(This=%p, ...)\n", This);
|
||||||
#endif
|
#endif
|
||||||
WaitForSingleObject(This->render.ev, INFINITE);
|
|
||||||
return DD_OK;
|
return DD_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2
render.c
2
render.c
@ -84,8 +84,6 @@ DWORD WINAPI render_main(void)
|
|||||||
|
|
||||||
while(ddraw->render.run)
|
while(ddraw->render.run)
|
||||||
{
|
{
|
||||||
ResetEvent(ddraw->render.ev);
|
|
||||||
|
|
||||||
scale_w = (float)ddraw->width/tex_width;
|
scale_w = (float)ddraw->width/tex_width;
|
||||||
scale_h = (float)ddraw->height/tex_height;
|
scale_h = (float)ddraw->height/tex_height;
|
||||||
|
|
||||||
|
@ -96,6 +96,7 @@ HRESULT __stdcall ddraw_surface_Blt(IDirectDrawSurfaceImpl *This, LPRECT lpDestR
|
|||||||
if(This->caps & DDSCAPS_PRIMARYSURFACE)
|
if(This->caps & DDSCAPS_PRIMARYSURFACE)
|
||||||
{
|
{
|
||||||
WaitForSingleObject(ddraw->render.ev, INFINITE);
|
WaitForSingleObject(ddraw->render.ev, INFINITE);
|
||||||
|
ResetEvent(ddraw->render.ev);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(Source)
|
if(Source)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user