Fixed bad calculation of dstEnd, which caused truncation of some bitblts
(cherry picked from commit 8a057bc9e2
)
This commit is contained in:
parent
83c0f69aa1
commit
247f7dcb87
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user