mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:52:56 +00:00
DC_SetOwnership: use GDIOBJ_SetOwnership instead of GDIOB_CopyOwnership, which is faster. Also rename DC to pDC, a variable shouldn't have the same name as a type.
svn path=/trunk/; revision=32832
This commit is contained in:
parent
1f9c06d956
commit
69223bf0ca
1 changed files with 11 additions and 11 deletions
|
@ -2522,25 +2522,25 @@ DC_InvertXform(const XFORM *xformSrc,
|
||||||
VOID FASTCALL
|
VOID FASTCALL
|
||||||
DC_SetOwnership(HDC hDC, PEPROCESS Owner)
|
DC_SetOwnership(HDC hDC, PEPROCESS Owner)
|
||||||
{
|
{
|
||||||
PDC DC;
|
PDC pDC;
|
||||||
|
|
||||||
GDIOBJ_SetOwnership(hDC, Owner);
|
GDIOBJ_SetOwnership(hDC, Owner);
|
||||||
DC = DC_LockDc(hDC);
|
pDC = DC_LockDc(hDC);
|
||||||
if (NULL != DC)
|
if (pDC)
|
||||||
{
|
{
|
||||||
if (NULL != DC->w.hClipRgn)
|
if (pDC->w.hClipRgn)
|
||||||
{
|
{
|
||||||
GDIOBJ_CopyOwnership(hDC, DC->w.hClipRgn);
|
GDIOBJ_SetOwnership(pDC->w.hClipRgn, Owner);
|
||||||
}
|
}
|
||||||
if (NULL != DC->w.hVisRgn)
|
if (pDC->w.hVisRgn)
|
||||||
{
|
{
|
||||||
GDIOBJ_CopyOwnership(hDC, DC->w.hVisRgn);
|
GDIOBJ_SetOwnership(pDC->w.hVisRgn, Owner);
|
||||||
}
|
}
|
||||||
if (NULL != DC->w.hGCClipRgn)
|
if (pDC->w.hGCClipRgn)
|
||||||
{
|
{
|
||||||
GDIOBJ_CopyOwnership(hDC, DC->w.hGCClipRgn);
|
GDIOBJ_SetOwnership(pDC->w.hGCClipRgn, Owner);
|
||||||
}
|
}
|
||||||
DC_UnlockDc(DC);
|
DC_UnlockDc(pDC);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue