mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-08 01:00:33 +01:00
Fixed bad calculation of dstEnd, which caused truncation of some bitblts
This commit is contained in:
parent
6e77289972
commit
8a057bc9e2
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue