From 2547121843a3096f4b7e345002b04401e01e933a Mon Sep 17 00:00:00 2001 From: Jukka Heinonen Date: Wed, 17 Oct 2001 17:45:53 +0000 Subject: [PATCH] When a surface becomes primary surface, mark the whole surface damaged. --- dlls/ddraw/dsurface/user.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/ddraw/dsurface/user.c b/dlls/ddraw/dsurface/user.c index dc08e2fe75e..e909f9700ae 100644 --- a/dlls/ddraw/dsurface/user.c +++ b/dlls/ddraw/dsurface/user.c @@ -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 -- 2.11.4.GIT