mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-04 20:47:37 +00:00
When a surface becomes primary surface, mark the whole surface damaged.
This commit is contained in:
parent
88372a6aef
commit
2547121843
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue