diff options
Diffstat (limited to 'fb/fbbits.h')
-rw-r--r-- | fb/fbbits.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/fb/fbbits.h b/fb/fbbits.h index 699782229..7dfff58b4 100644 --- a/fb/fbbits.h +++ b/fb/fbbits.h @@ -274,6 +274,8 @@ DOTS (FbBits *dst, BoxPtr pBox, xPoint *ptsOrig, int npt, + int xorg, + int yorg, int xoff, int yoff, FbBits and, @@ -288,10 +290,10 @@ DOTS (FbBits *dst, INT32 ul, lr; INT32 pt; - ul = coordToInt(pBox->x1 - xoff, pBox->y1 - yoff); - lr = coordToInt(pBox->x2 - xoff - 1, pBox->y2 - yoff - 1); + ul = coordToInt(pBox->x1 - xorg, pBox->y1 - yorg); + lr = coordToInt(pBox->x2 - xorg - 1, pBox->y2 - yorg - 1); - bits += bitsStride * yoff + xoff * MUL; + bits += bitsStride * (yorg + yoff) + (xorg + xoff) * MUL; if (and == 0) { @@ -827,6 +829,8 @@ POLYSEGMENT (DrawablePtr pDrawable, ul = coordToInt(pBox->x1 - xoff, pBox->y1 - yoff); lr = coordToInt(pBox->x2 - xoff - 1, pBox->y2 - yoff - 1); + bits += bitsStride * yoff + xoff * MUL; + capNotLast = pGC->capStyle == CapNotLast; while (nseg--) |