mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-10 19:56:47 +03:00
Fixed polygon edge drawing
This commit is contained in:
parent
9f79e4a320
commit
16261beeba
|
@ -457,8 +457,8 @@ polygon_generic(Imaging im, int n, Edge *e, int ink, int eofill,
|
|||
if (ymin < 0) {
|
||||
ymin = 0;
|
||||
}
|
||||
if (ymax >= im->ysize) {
|
||||
ymax = im->ysize - 1;
|
||||
if (ymax > im->ysize) {
|
||||
ymax = im->ysize;
|
||||
}
|
||||
|
||||
/* Process the edge table with a scan line searching for intersections */
|
||||
|
|
Loading…
Reference in New Issue
Block a user