mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 13:35:47 +00:00
Remove IntGdiSelectBrush and IntGdiSelectBrush, they are not needed anymore and superceded by DC_vUpdateFillBrush and DC_vUpdateLineBrush.
svn path=/trunk/; revision=40420
This commit is contained in:
parent
428a48a083
commit
60cd063c0a
5 changed files with 27 additions and 71 deletions
|
@ -180,8 +180,6 @@ VOID FASTCALL IntGdiUnreferencePdev(PPDEVOBJ pPDev, DWORD CleanUpType);
|
|||
HDC FASTCALL IntGdiCreateDisplayDC(HDEV hDev, ULONG DcType, BOOL EmptyDC);
|
||||
BOOL FASTCALL IntGdiCleanDC(HDC hDC);
|
||||
VOID FASTCALL IntvGetDeviceCaps(PPDEVOBJ, PDEVCAPS);
|
||||
HPEN FASTCALL IntGdiSelectPen(PDC,HPEN);
|
||||
HBRUSH FASTCALL IntGdiSelectBrush(PDC,HBRUSH);
|
||||
INT FASTCALL IntGdiGetDeviceCaps(PDC,INT);
|
||||
|
||||
extern PPDEVOBJ pPrimarySurface;
|
||||
|
|
|
@ -1047,8 +1047,8 @@ IntGdiPolyPatBlt(
|
|||
|
||||
pdcattr = dc->pdcattr;
|
||||
|
||||
if (pdcattr->ulDirty_ & DC_BRUSH_DIRTY)
|
||||
IntGdiSelectBrush(dc,pdcattr->hbrush);
|
||||
if (pdcattr->ulDirty_ & (DIRTY_FILL | DC_BRUSH_DIRTY))
|
||||
DC_vUpdateFillBrush(dc);
|
||||
|
||||
for (r = pRects, i = 0; i < cRects; i++)
|
||||
{
|
||||
|
@ -1110,8 +1110,8 @@ NtGdiPatBlt(
|
|||
|
||||
pdcattr = dc->pdcattr;
|
||||
|
||||
if (pdcattr->ulDirty_ & DC_BRUSH_DIRTY)
|
||||
IntGdiSelectBrush(dc,pdcattr->hbrush);
|
||||
if (pdcattr->ulDirty_ & (DIRTY_FILL | DC_BRUSH_DIRTY))
|
||||
DC_vUpdateFillBrush(dc);
|
||||
|
||||
pbrush = BRUSH_LockBrush(pdcattr->hbrush);
|
||||
if (pbrush == NULL)
|
||||
|
|
|
@ -284,49 +284,6 @@ GdiSelectPalette(
|
|||
return oldPal;
|
||||
}
|
||||
|
||||
HBRUSH
|
||||
FASTCALL
|
||||
IntGdiSelectBrush(
|
||||
PDC pDC,
|
||||
HBRUSH hBrush)
|
||||
{
|
||||
PDC_ATTR pdcattr;
|
||||
HBRUSH hOrgBrush;
|
||||
|
||||
if (pDC == NULL || hBrush == NULL) return NULL;
|
||||
|
||||
pdcattr = pDC->pdcattr;
|
||||
|
||||
hOrgBrush = pdcattr->hbrush;
|
||||
pdcattr->hbrush = hBrush;
|
||||
|
||||
DC_vUpdateFillBrush(pDC);
|
||||
|
||||
return hOrgBrush;
|
||||
}
|
||||
|
||||
HPEN
|
||||
FASTCALL
|
||||
IntGdiSelectPen(
|
||||
PDC pDC,
|
||||
HPEN hPen)
|
||||
{
|
||||
PDC_ATTR pdcattr;
|
||||
HPEN hOrgPen = NULL;
|
||||
|
||||
if (pDC == NULL || hPen == NULL) return NULL;
|
||||
|
||||
pdcattr = pDC->pdcattr;
|
||||
|
||||
hOrgPen = pdcattr->hpen;
|
||||
pdcattr->hpen = hPen;
|
||||
|
||||
DC_vUpdateLineBrush(pDC);
|
||||
|
||||
return hOrgPen;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* @implemented
|
||||
*/
|
||||
|
@ -347,7 +304,7 @@ NtGdiSelectBrush(
|
|||
return NULL;
|
||||
}
|
||||
|
||||
// hOrgBrush = IntGdiSelectBrush(pDC,hBrush);
|
||||
/* Simply return the user mode value, without checking */
|
||||
hOrgBrush = pDC->pdcattr->hbrush;
|
||||
pDC->pdcattr->hbrush = hBrush;
|
||||
DC_vUpdateFillBrush(pDC);
|
||||
|
@ -377,7 +334,7 @@ NtGdiSelectPen(
|
|||
return NULL;
|
||||
}
|
||||
|
||||
// hOrgPen = IntGdiSelectPen(pDC, hPen);
|
||||
/* Simply return the user mode value, without checking */
|
||||
hOrgPen = pDC->pdcattr->hpen;
|
||||
pDC->pdcattr->hpen = hPen;
|
||||
DC_vUpdateLineBrush(pDC);
|
||||
|
@ -547,11 +504,11 @@ NtGdiGetDCObject(HDC hDC, INT ObjectType)
|
|||
}
|
||||
pdcattr = pdc->pdcattr;
|
||||
|
||||
if (pdcattr->ulDirty_ & DC_BRUSH_DIRTY)
|
||||
IntGdiSelectBrush(pdc, pdcattr->hbrush);
|
||||
if (pdcattr->ulDirty_ & (DIRTY_FILL | DC_BRUSH_DIRTY))
|
||||
DC_vUpdateFillBrush(pdc);
|
||||
|
||||
if (pdcattr->ulDirty_ & DC_PEN_DIRTY)
|
||||
IntGdiSelectPen(pdc, pdcattr->hpen);
|
||||
if (pdcattr->ulDirty_ & (DIRTY_LINE | DC_PEN_DIRTY))
|
||||
DC_vUpdateLineBrush(pdc);
|
||||
|
||||
switch(ObjectType)
|
||||
{
|
||||
|
|
|
@ -243,11 +243,11 @@ NtGdiEllipse(
|
|||
|
||||
pdcattr = dc->pdcattr;
|
||||
|
||||
if (pdcattr->ulDirty_ & DC_BRUSH_DIRTY)
|
||||
IntGdiSelectBrush(dc,pdcattr->hbrush);
|
||||
if (pdcattr->ulDirty_ & (DIRTY_FILL | DC_BRUSH_DIRTY))
|
||||
DC_vUpdateFillBrush(dc);
|
||||
|
||||
if (pdcattr->ulDirty_ & DC_PEN_DIRTY)
|
||||
IntGdiSelectPen(dc,pdcattr->hpen);
|
||||
if (pdcattr->ulDirty_ & (DIRTY_LINE | DC_PEN_DIRTY))
|
||||
DC_vUpdateLineBrush(dc);
|
||||
|
||||
pbrush = PEN_LockPen(pdcattr->hpen);
|
||||
if (!pbrush)
|
||||
|
@ -726,11 +726,11 @@ IntRoundRect(
|
|||
|
||||
pdcattr = dc->pdcattr;
|
||||
|
||||
if (pdcattr->ulDirty_ & DC_BRUSH_DIRTY)
|
||||
IntGdiSelectBrush(dc,pdcattr->hbrush);
|
||||
if (pdcattr->ulDirty_ & (DIRTY_FILL | DC_BRUSH_DIRTY))
|
||||
DC_vUpdateFillBrush(dc);
|
||||
|
||||
if (pdcattr->ulDirty_ & DC_PEN_DIRTY)
|
||||
IntGdiSelectPen(dc,pdcattr->hpen);
|
||||
if (pdcattr->ulDirty_ & (DIRTY_LINE | DC_PEN_DIRTY))
|
||||
DC_vUpdateLineBrush(dc);
|
||||
|
||||
pbrushLine = PEN_LockPen(pdcattr->hpen);
|
||||
if (!pbrushLine)
|
||||
|
|
|
@ -2294,8 +2294,8 @@ NtGdiFillPath(HDC hDC)
|
|||
|
||||
pdcattr = dc->pdcattr;
|
||||
|
||||
if (pdcattr->ulDirty_ & DC_BRUSH_DIRTY)
|
||||
IntGdiSelectBrush(dc,pdcattr->hbrush);
|
||||
if (pdcattr->ulDirty_ & (DIRTY_LINE | DC_PEN_DIRTY))
|
||||
DC_vUpdateLineBrush(dc);
|
||||
|
||||
ret = PATH_FillPath( dc, pPath );
|
||||
if ( ret )
|
||||
|
@ -2569,10 +2569,11 @@ NtGdiStrokeAndFillPath(HDC hDC)
|
|||
|
||||
pdcattr = pDc->pdcattr;
|
||||
|
||||
if (pdcattr->ulDirty_ & DC_BRUSH_DIRTY)
|
||||
IntGdiSelectBrush(pDc,pdcattr->hbrush);
|
||||
if (pdcattr->ulDirty_ & DC_PEN_DIRTY)
|
||||
IntGdiSelectPen(pDc,pdcattr->hpen);
|
||||
if (pdcattr->ulDirty_ & (DIRTY_FILL | DC_BRUSH_DIRTY))
|
||||
DC_vUpdateFillBrush(pDc);
|
||||
|
||||
if (pdcattr->ulDirty_ & (DIRTY_LINE | DC_PEN_DIRTY))
|
||||
DC_vUpdateLineBrush(pDc);
|
||||
|
||||
bRet = PATH_FillPath(pDc, pPath);
|
||||
if (bRet) bRet = PATH_StrokePath(pDc, pPath);
|
||||
|
@ -2608,8 +2609,8 @@ NtGdiStrokePath(HDC hDC)
|
|||
|
||||
pdcattr = pDc->pdcattr;
|
||||
|
||||
if (pdcattr->ulDirty_ & DC_PEN_DIRTY)
|
||||
IntGdiSelectPen(pDc,pdcattr->hpen);
|
||||
if (pdcattr->ulDirty_ & (DIRTY_LINE | DC_PEN_DIRTY))
|
||||
DC_vUpdateLineBrush(pDc);
|
||||
|
||||
bRet = PATH_StrokePath(pDc, pPath);
|
||||
PATH_EmptyPath(pPath);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue