https://git.reactos.org/?p=reactos.git;a=commitdiff;h=84d518b19089c04f0423a7...
commit 84d518b19089c04f0423a7e99dda2728fc7670a7 Author: jimtabor james.tabor@reactos.org AuthorDate: Wed Apr 10 19:24:50 2019 -0500 Commit: jimtabor james.tabor@reactos.org CommitDate: Wed Apr 10 19:24:50 2019 -0500
[DDraw] Fix DxDiag tests.
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 | 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 e188396eb3f..df8d0380093 100644 --- a/dll/directx/wine/ddraw/surface.c +++ b/dll/directx/wine/ddraw/surface.c @@ -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) {