mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-17 07:10:36 +00:00
Fix Graphics::fillAreaBetweenRects()
This commit is contained in:
parent
be13633d44
commit
6edf02765a
@ -115,7 +115,7 @@ void Graphics::fillAreaBetweenRects(ui::Color color,
|
|||||||
const gfx::Rect& outer, const gfx::Rect& inner)
|
const gfx::Rect& outer, const gfx::Rect& inner)
|
||||||
{
|
{
|
||||||
if (!outer.intersects(inner))
|
if (!outer.intersects(inner))
|
||||||
fillRect(color, inner);
|
fillRect(color, outer);
|
||||||
else {
|
else {
|
||||||
gfx::Region rgn(outer);
|
gfx::Region rgn(outer);
|
||||||
rgn.createSubtraction(rgn, gfx::Region(inner));
|
rgn.createSubtraction(rgn, gfx::Region(inner));
|
||||||
|
Loading…
Reference in New Issue
Block a user