From 247f7dcb87ccbe7625621c3ec0ce46d6d4cd6e63 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 (cherry picked from commit 8a057bc9e2eadd5b3296643e1b2337a5ef647cb2) --- fb/fbbltone.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fb/fbbltone.c b/fb/fbbltone.c index e636665cf..88ada9de1 100644 --- a/fb/fbbltone.c +++ b/fb/fbbltone.c @@ -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;