mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
Fix an off-by-1 error for copying overlapping bitmaps in r346416. For
nonzero height, the first line in the original order was not copied, and for zero height, garbage lines before the first were copied until a crash occurred.
This commit is contained in:
parent
5803d72f7e
commit
7181920238
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=346743
@ -207,7 +207,7 @@ __VGLBitmapCopy(VGLBitmap *src, int srcx, int srcy,
|
||||
yextra = 0;
|
||||
ystep = 1;
|
||||
if (src->Bitmap == dst->Bitmap && srcy < dsty) {
|
||||
yend = srcy;
|
||||
yend = srcy - 1;
|
||||
yextra = hight - 1;
|
||||
ystep = -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user