Fixed bad calculation of dstEnd, which caused truncation of some bitblts

This commit is contained in:
Ben Byer 2007-12-08 23:33:27 -08:00
parent 6e77289972
commit 8a057bc9e2

View file

@ -193,7 +193,7 @@ fbBltOne (FbStip *src,
* Do not read or write past the end of the buffer!
*/
srcEnd = src + height * srcStride;
dstEnd = dst + height * dstStride;
dstEnd = dst + dstX + height * dstStride;
/*
* Number of destination units in FbBits == number of stipple pixels
@ -614,7 +614,7 @@ fbBltOne24 (FbStip *srcLine,
* Do not read or write past the end of the buffer!
*/
srcEnd = srcLine + height * srcStride;
dstEnd = dst + height * dstStride;
dstEnd = dst + dstX + height * dstStride;
srcLine += srcX >> FB_STIP_SHIFT;
dst += dstX >> FB_SHIFT;