mirror of
https://github.com/reactos/reactos.git
synced 2024-11-18 21:13:52 +00:00
[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:
parent
703df88aec
commit
d94028f042
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue