mirror of
https://github.com/reactos/reactos.git
synced 2025-05-28 13:38:19 +00:00
[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.
This commit is contained in:
parent
29bf209767
commit
84d518b190
1 changed files with 3 additions and 1 deletions
|
@ -2346,7 +2346,9 @@ static HRESULT WINAPI ddraw_surface7_ReleaseDC(IDirectDrawSurface7 *iface, HDC h
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
|
|
||||||
TRACE("iface %p, dc %p.\n", iface, hdc);
|
TRACE("iface %p, dc %p.\n", iface, hdc);
|
||||||
|
#ifdef __REACTOS__
|
||||||
|
GdiFlush();
|
||||||
|
#endif
|
||||||
wined3d_mutex_lock();
|
wined3d_mutex_lock();
|
||||||
if (!surface->dc)
|
if (!surface->dc)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue