mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-26 21:12:25 +00:00
Replace dixChangeGC with calls directly to the right variant.
Signed-off-by: Jamey Sharp <jamey@minilop.net> Reviewed-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
2d7eb4a19b
commit
6a84cd9434
26 changed files with 103 additions and 120 deletions
|
|
@ -306,7 +306,7 @@ miDCRealize (ScreenPtr pScreen, CursorPtr pCursor)
|
|||
0, 0, pCursor->bits->width, pCursor->bits->height,
|
||||
0, XYPixmap, (char *)pCursor->bits->source);
|
||||
gcvals.val = GXand;
|
||||
dixChangeGC (NullClient, pGC, GCFunction, NULL, &gcvals);
|
||||
ChangeGC (NullClient, pGC, GCFunction, &gcvals);
|
||||
ValidateGC ((DrawablePtr)pPriv->sourceBits, pGC);
|
||||
(*pGC->ops->PutImage) ((DrawablePtr)pPriv->sourceBits, pGC, 1,
|
||||
0, 0, pCursor->bits->width, pCursor->bits->height,
|
||||
|
|
@ -314,13 +314,13 @@ miDCRealize (ScreenPtr pScreen, CursorPtr pCursor)
|
|||
|
||||
/* mask bits -- pCursor->mask & ~pCursor->source */
|
||||
gcvals.val = GXcopy;
|
||||
dixChangeGC (NullClient, pGC, GCFunction, NULL, &gcvals);
|
||||
ChangeGC (NullClient, pGC, GCFunction, &gcvals);
|
||||
ValidateGC ((DrawablePtr)pPriv->maskBits, pGC);
|
||||
(*pGC->ops->PutImage) ((DrawablePtr)pPriv->maskBits, pGC, 1,
|
||||
0, 0, pCursor->bits->width, pCursor->bits->height,
|
||||
0, XYPixmap, (char *)pCursor->bits->mask);
|
||||
gcvals.val = GXandInverted;
|
||||
dixChangeGC (NullClient, pGC, GCFunction, NULL, &gcvals);
|
||||
ChangeGC (NullClient, pGC, GCFunction, &gcvals);
|
||||
ValidateGC ((DrawablePtr)pPriv->maskBits, pGC);
|
||||
(*pGC->ops->PutImage) ((DrawablePtr)pPriv->maskBits, pGC, 1,
|
||||
0, 0, pCursor->bits->width, pCursor->bits->height,
|
||||
|
|
@ -371,7 +371,7 @@ miDCPutBits (
|
|||
if (sourceGC->fgPixel != source)
|
||||
{
|
||||
gcval.val = source;
|
||||
dixChangeGC (NullClient, sourceGC, GCForeground, NULL, &gcval);
|
||||
ChangeGC (NullClient, sourceGC, GCForeground, &gcval);
|
||||
}
|
||||
if (sourceGC->serialNumber != pDrawable->serialNumber)
|
||||
ValidateGC (pDrawable, sourceGC);
|
||||
|
|
@ -391,7 +391,7 @@ miDCPutBits (
|
|||
if (maskGC->fgPixel != mask)
|
||||
{
|
||||
gcval.val = mask;
|
||||
dixChangeGC (NullClient, maskGC, GCForeground, NULL, &gcval);
|
||||
ChangeGC (NullClient, maskGC, GCForeground, &gcval);
|
||||
}
|
||||
if (maskGC->serialNumber != pDrawable->serialNumber)
|
||||
ValidateGC (pDrawable, maskGC);
|
||||
|
|
|
|||
Loading…
Reference in a new issue