mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-09 07:40:21 +01:00
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
1 changed files with 2 additions and 2 deletions
|
|
@ -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…
Add table
Reference in a new issue