From d94028f0427c379b3ec00291c4d04dec61b2007a Mon Sep 17 00:00:00 2001 From: jimtabor Date: Wed, 10 Apr 2019 19:24:50 -0500 Subject: [PATCH] [0.4.12] [DDraw] Fix DxDiag tests. Fixes regression CORE-15905 After the DC work is done while before releasing the DC flush the GDI batch. See CORE-15905. Someone may need to notify wine about this change. cherry picked from commit 0.4.13-dev-7-g 84d518b19089c04f0423a7e99dda2728fc7670a7 --- dll/directx/wine/ddraw/surface.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dll/directx/wine/ddraw/surface.c b/dll/directx/wine/ddraw/surface.c index 5eefc228e64..11a0e6ba8db 100644 --- a/dll/directx/wine/ddraw/surface.c +++ b/dll/directx/wine/ddraw/surface.c @@ -2311,7 +2311,9 @@ static HRESULT WINAPI ddraw_surface7_ReleaseDC(IDirectDrawSurface7 *iface, HDC h HRESULT hr; TRACE("iface %p, dc %p.\n", iface, hdc); - +#ifdef __REACTOS__ + GdiFlush(); +#endif wined3d_mutex_lock(); if (!surface->dc) {