[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
84d518b190
This commit is contained in:
jimtabor 2019-04-10 19:24:50 -05:00 committed by Joachim Henze
parent 703df88aec
commit d94028f042

View file

@ -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)
{