mirror of https://github.com/aseprite/aseprite.git
Fix DECORATIVE widget drawing outside of window
This commit is contained in:
parent
2db193b8e3
commit
3a14ac72a4
|
|
@ -936,6 +936,10 @@ void Widget::getDrawableRegion(gfx::Region& region, DrawableRegionFlags flags)
|
|||
if (p) {
|
||||
region &= Region(p->bounds());
|
||||
}
|
||||
// Intersect with window bounds
|
||||
if (this->window()) {
|
||||
region &= Region(this->window()->bounds());
|
||||
}
|
||||
}
|
||||
|
||||
// Limit to the displayable area
|
||||
|
|
|
|||
Loading…
Reference in New Issue