diff options
author | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-14 16:49:22 +0000 |
---|---|---|
committer | Kaleb Keithley <kaleb@freedesktop.org> | 2003-11-14 16:49:22 +0000 |
commit | d568221710959cf7d783e6ff0fb80fb43a231124 (patch) | |
tree | 8d6f039393294c6ffac8533639afdebe5d68bfc1 /mfb/mfbblt.c | |
parent | 9508a382f8a9f241dab097d921b6d290c1c3a776 (diff) |
XFree86 4.3.0.1xf86-4_3_0_1PRE_xf86-4_3_0_1
Diffstat (limited to 'mfb/mfbblt.c')
-rw-r--r-- | mfb/mfbblt.c | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/mfb/mfbblt.c b/mfb/mfbblt.c index 28f16febc..59968110b 100644 --- a/mfb/mfbblt.c +++ b/mfb/mfbblt.c @@ -1,6 +1,7 @@ /* * mfb copy area */ +/* $XFree86: xc/programs/Xserver/mfb/mfbblt.c,v 3.4 2001/12/14 20:00:04 dawes Exp $ */ /* @@ -82,14 +83,7 @@ MROP_NAME(mfbDoBitblt)(pSrc, pDst, alu, prgnDst, pptSrc) register PixelType bits; register PixelType bits1; register int nl; /* temp copy of nlMiddle */ - - /* place to store full source word */ - int nstart; /* number of ragged bits at start of dst */ - int nend; /* number of ragged bits at end of dst */ - int srcStartOver; /* pulling nstart bits from src - overflows into the next word? */ int careful; - int tmpSrc; MROP_INITIALIZE(alu,0); @@ -336,8 +330,10 @@ psrc += UNROLL; if (startmask) { bits1 = BitLeft(bits,leftShift); - bits = *psrc++; - bits1 |= BitRight(bits,rightShift); + if (BitLeft(startmask, rightShift)) { + bits = *psrc++; + bits1 |= BitRight(bits,rightShift); + } *pdst = MROP_MASK(bits1, *pdst, startmask); pdst++; } @@ -500,8 +496,10 @@ psrc -= UNROLL; if (endmask) { bits1 = BitRight(bits, rightShift); - bits = *--psrc; - bits1 |= BitLeft(bits, leftShift); + if (BitRight(endmask, leftShift)) { + bits = *--psrc; + bits1 |= BitLeft(bits, leftShift); + } pdst--; *pdst = MROP_MASK(bits1, *pdst, endmask); } |