mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
ddraw: Better simulate what 'GetVerticalBlankStatus' does on real hardware.
This commit is contained in:
parent
f87efbd14e
commit
00577aa605
2 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue