ddraw: Better simulate what 'GetVerticalBlankStatus' does on real hardware.
This commit is contained in:
parent
f87efbd14e
commit
00577aa605
|
@ -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 New Issue