[DDraw] Fix DxDiag tests.
authorjimtabor <james.tabor@reactos.org>
Thu, 11 Apr 2019 00:24:50 +0000 (19:24 -0500)
committerjimtabor <james.tabor@reactos.org>
Thu, 11 Apr 2019 00:24:50 +0000 (19:24 -0500)
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.

dll/directx/wine/ddraw/surface.c

index e188396..df8d038 100644 (file)
@@ -2346,7 +2346,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)
     {