Lines Matching defs:pgcDst
617 CopyGC(GC * pgcSrc, GC * pgcDst, BITS32 mask)
623 if (pgcSrc == pgcDst)
625 pgcDst->serialNumber |= GC_CHANGE_SERIAL_BIT;
626 pgcDst->stateChanges |= mask;
633 pgcDst->alu = pgcSrc->alu;
636 pgcDst->planemask = pgcSrc->planemask;
639 pgcDst->fgPixel = pgcSrc->fgPixel;
642 pgcDst->bgPixel = pgcSrc->bgPixel;
645 pgcDst->lineWidth = pgcSrc->lineWidth;
648 pgcDst->lineStyle = pgcSrc->lineStyle;
651 pgcDst->capStyle = pgcSrc->capStyle;
654 pgcDst->joinStyle = pgcSrc->joinStyle;
657 pgcDst->fillStyle = pgcSrc->fillStyle;
660 pgcDst->fillRule = pgcSrc->fillRule;
664 if (EqualPixUnion(pgcDst->tileIsPixel,
665 pgcDst->tile,
669 if (!pgcDst->tileIsPixel)
670 (*pgcDst->pScreen->DestroyPixmap) (pgcDst->tile.pixmap);
671 pgcDst->tileIsPixel = pgcSrc->tileIsPixel;
672 pgcDst->tile = pgcSrc->tile;
673 if (!pgcDst->tileIsPixel)
674 pgcDst->tile.pixmap->refcnt++;
679 if (pgcDst->stipple == pgcSrc->stipple)
681 if (pgcDst->stipple)
682 (*pgcDst->pScreen->DestroyPixmap) (pgcDst->stipple);
683 pgcDst->stipple = pgcSrc->stipple;
684 if (pgcDst->stipple)
685 pgcDst->stipple->refcnt++;
689 pgcDst->patOrg.x = pgcSrc->patOrg.x;
692 pgcDst->patOrg.y = pgcSrc->patOrg.y;
695 if (pgcDst->font == pgcSrc->font)
697 if (pgcDst->font)
698 CloseFont(pgcDst->font, (Font) 0);
699 if ((pgcDst->font = pgcSrc->font) != NullFont)
700 (pgcDst->font)->refcnt++;
703 pgcDst->subWindowMode = pgcSrc->subWindowMode;
706 pgcDst->graphicsExposures = pgcSrc->graphicsExposures;
709 pgcDst->clipOrg.x = pgcSrc->clipOrg.x;
712 pgcDst->clipOrg.y = pgcSrc->clipOrg.y;
715 (*pgcDst->funcs->CopyClip) (pgcDst, pgcSrc);
718 pgcDst->dashOffset = pgcSrc->dashOffset;
722 if (pgcDst->dash != DefaultDash) {
723 free(pgcDst->dash);
724 pgcDst->numInDashList = pgcSrc->numInDashList;
725 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) {
753 if (!CreateDefaultTile(pgcDst)) {
754 pgcDst->fillStyle = FillSolid;
758 (*pgcDst->funcs->CopyGC) (pgcSrc, maskQ, pgcDst);