Lines Matching defs:pgcDst

609 CopyGC(GC *pgcSrc, GC *pgcDst, BITS32 mask)
615 if (pgcSrc == pgcDst)
617 pgcDst->serialNumber |= GC_CHANGE_SERIAL_BIT;
618 pgcDst->stateChanges |= mask;
627 pgcDst->alu = pgcSrc->alu;
630 pgcDst->planemask = pgcSrc->planemask;
633 pgcDst->fgPixel = pgcSrc->fgPixel;
636 pgcDst->bgPixel = pgcSrc->bgPixel;
639 pgcDst->lineWidth = pgcSrc->lineWidth;
642 pgcDst->lineStyle = pgcSrc->lineStyle;
645 pgcDst->capStyle = pgcSrc->capStyle;
648 pgcDst->joinStyle = pgcSrc->joinStyle;
651 pgcDst->fillStyle = pgcSrc->fillStyle;
654 pgcDst->fillRule = pgcSrc->fillRule;
658 if (EqualPixUnion(pgcDst->tileIsPixel,
659 pgcDst->tile,
665 if (!pgcDst->tileIsPixel)
666 (* pgcDst->pScreen->DestroyPixmap)(pgcDst->tile.pixmap);
667 pgcDst->tileIsPixel = pgcSrc->tileIsPixel;
668 pgcDst->tile = pgcSrc->tile;
669 if (!pgcDst->tileIsPixel)
670 pgcDst->tile.pixmap->refcnt++;
675 if (pgcDst->stipple == pgcSrc->stipple)
677 if (pgcDst->stipple)
678 (* pgcDst->pScreen->DestroyPixmap)(pgcDst->stipple);
679 pgcDst->stipple = pgcSrc->stipple;
680 if (pgcDst->stipple)
681 pgcDst->stipple->refcnt ++;
685 pgcDst->patOrg.x = pgcSrc->patOrg.x;
688 pgcDst->patOrg.y = pgcSrc->patOrg.y;
691 if (pgcDst->font == pgcSrc->font)
693 if (pgcDst->font)
694 CloseFont(pgcDst->font, (Font)0);
695 if ((pgcDst->font = pgcSrc->font) != NullFont)
696 (pgcDst->font)->refcnt++;
699 pgcDst->subWindowMode = pgcSrc->subWindowMode;
702 pgcDst->graphicsExposures = pgcSrc->graphicsExposures;
705 pgcDst->clipOrg.x = pgcSrc->clipOrg.x;
708 pgcDst->clipOrg.y = pgcSrc->clipOrg.y;
711 (* pgcDst->funcs->CopyClip)(pgcDst, pgcSrc);
714 pgcDst->dashOffset = pgcSrc->dashOffset;
719 if (pgcDst->dash != DefaultDash)
721 free(pgcDst->dash);
722 pgcDst->numInDashList = pgcSrc->numInDashList;
723 pgcDst->dash = pgcSrc->dash;
734 if (pgcDst->dash != DefaultDash)
735 free(pgcDst->dash);
736 pgcDst->numInDashList = pgcSrc->numInDashList;
737 pgcDst->dash = dash;
746 pgcDst->arcMode = pgcSrc->arcMode;
752 if (pgcDst->fillStyle == FillTiled && pgcDst->tileIsPixel)
754 if (!CreateDefaultTile (pgcDst))
756 pgcDst->fillStyle = FillSolid;
760 (*pgcDst->funcs->CopyGC) (pgcSrc, maskQ, pgcDst);