Flip scrolling issues around, it'll slow on load instead of jumping fast
This commit is contained in:
parent
d066962617
commit
6b237c5ba1
3 changed files with 1 additions and 3 deletions
1
main.c
1
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;
|
||||
}
|
||||
|
||||
|
|
2
render.c
2
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;
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue