Commit 00577aa6 authored by Lionel Ulmer's avatar Lionel Ulmer Committed by Alexandre Julliard

ddraw: Better simulate what 'GetVerticalBlankStatus' does on real hardware.

parent f87efbd1
......@@ -1067,7 +1067,8 @@ Main_DirectDraw_GetVerticalBlankStatus(LPDIRECTDRAW7 iface, LPBOOL status)
{
IDirectDrawImpl *This = (IDirectDrawImpl *)iface;
TRACE("(%p)->(%p)\n",This,status);
*status = TRUE;
*status = This->fake_vblank;
This->fake_vblank = !This->fake_vblank;
return DD_OK;
}
......
......@@ -114,6 +114,8 @@ struct IDirectDrawImpl
DDPIXELFORMAT pixelformat;
DWORD cur_scanline;
BOOL fake_vblank;
/* Should each of these go into some structure? */
DWORD orig_width, orig_height;
LONG orig_pitch;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment