Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit c8e3d4b

Browse files
committed
[[ Bug 13221 ]] Fix boundary issue in X-Y dilation.
1 parent 8e817fb commit c8e3d4b

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

docs/notes/bugfix-13221.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Artifacts can appear in bitmap effects when multicore rendering is used.

libgraphics/src/spread.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,14 @@ void dilateDistanceXY(const uint8_t *src, uint8_t *dst, int xradius, int yradius
269269
xdptr[x] = 0;
270270
x++, next++;
271271
}
272+
273+
// MW-2014-08-27: [[ Bug 13221 ]] If we reached the edge of the source, then we
274+
// assume the next pixel is clear.
275+
if (next == width - 1)
276+
{
277+
xdptr[x] = 0;
278+
x++, next++;
279+
}
272280
}
273281
}
274282

0 commit comments

Comments
 (0)