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

(cherry picked from commit 8a057bc9e2)
This commit is contained in:
Ben Byer 2007-12-08 23:33:27 -08:00 committed by Jeremy Huddleston
parent 83c0f69aa1
commit 247f7dcb87

View File

@ -191,7 +191,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
@ -612,7 +612,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;