Commit 25471218 authored by Jukka Heinonen's avatar Jukka Heinonen Committed by Alexandre Julliard

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

parent 88372a6a
......@@ -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
......
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