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

This commit is contained in:
Lionel Ulmer 2006-01-16 20:38:08 +01:00 committed by Alexandre Julliard
parent f87efbd14e
commit 00577aa605
2 changed files with 4 additions and 1 deletions

View File

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

View File

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