When a surface becomes primary surface, mark the whole surface damaged.

This commit is contained in:
Jukka Heinonen 2001-10-17 17:45:53 +00:00 committed by Alexandre Julliard
parent 88372a6aef
commit 2547121843

View file

@ -256,10 +256,12 @@ BOOL User_DirectDrawSurface_flip_data(IDirectDrawSurfaceImpl* front,
void User_DirectDrawSurface_flip_update(IDirectDrawSurfaceImpl* This, DWORD dwFlags)
{
#ifdef SYNC_UPDATE
This->lastlockrect.left = This->lastlockrect.right = 0;
assert(This->surface_desc.ddsCaps.dwCaps & DDSCAPS_PRIMARYSURFACE);
User_copy_to_screen(This,NULL);
#else
USER_PRIV_VAR(priv, This);
This->lastlockrect.left = This->lastlockrect.right = 0;
assert(This->surface_desc.ddsCaps.dwCaps & DDSCAPS_PRIMARYSURFACE);
SetEvent(priv->user.update_event);
#endif