From 8a057bc9e2eadd5b3296643e1b2337a5ef647cb2 Mon Sep 17 00:00:00 2001 From: Ben Byer Date: Sat, 8 Dec 2007 23:33:27 -0800 Subject: [PATCH] Fixed bad calculation of dstEnd, which caused truncation of some bitblts --- fb/fbbltone.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fb/fbbltone.c b/fb/fbbltone.c index 44e020cd4..33e6c35a7 100644 --- a/fb/fbbltone.c +++ b/fb/fbbltone.c @@ -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;