mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-03 14:40:02 +00:00
Fixed some problems in jrectexclude() when y1==ey1 or y2==ye2.
This commit is contained in:
parent
a4b55a980c
commit
dac67bb21c
@ -71,6 +71,7 @@ void jrectexclude(BITMAP *bmp, int x1, int y1, int x2, int y2,
|
||||
my2 = MIN(y2, ey2);
|
||||
|
||||
// top
|
||||
if (y1 < ey1)
|
||||
rectfill(bmp, x1, y1, x2, ey1-1, color);
|
||||
|
||||
// left
|
||||
@ -82,6 +83,7 @@ void jrectexclude(BITMAP *bmp, int x1, int y1, int x2, int y2,
|
||||
rectfill(bmp, ex2+1, my1, x2, my2, color);
|
||||
|
||||
// bottom
|
||||
if (y2 > ey2)
|
||||
rectfill(bmp, x1, ey2+1, x2, y2, color);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user