mirror of
https://github.com/reactos/reactos.git
synced 2024-09-05 18:26:53 +00:00
[WIN32K]
Unlock/lock surface when locking DC svn path=/branches/reactos-yarotows/; revision=46697
This commit is contained in:
parent
a9afa4fad8
commit
736c7b0111
|
@ -176,8 +176,12 @@ DC_LockDc(HDC hdc)
|
||||||
/* Acquire shared PDEV lock */
|
/* Acquire shared PDEV lock */
|
||||||
EngAcquireSemaphoreShared(pdc->ppdev->hsemDevLock);
|
EngAcquireSemaphoreShared(pdc->ppdev->hsemDevLock);
|
||||||
|
|
||||||
/* Get the current surface */
|
/* Update Surface if needed */
|
||||||
pdc->dclevel.pSurface = pdc->ppdev->pSurface;
|
if(pdc->dclevel.pSurface != pdc->ppdev->pSurface)
|
||||||
|
{
|
||||||
|
if(pdc->dclevel.pSurface) SURFACE_ShareUnlockSurface(pdc->dclevel.pSurface);
|
||||||
|
pdc->dclevel.pSurface = PDEVOBJ_pSurface(pdc->ppdev);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return pdc;
|
return pdc;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue