mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-30 15:32:38 +00:00
Fix redrawing issue when we "delete all brushes"
This commit is contained in:
parent
53b8eb7c4d
commit
3024bc7604
@ -289,8 +289,13 @@ void BrushPopup::regenerate(const gfx::Rect& box)
|
||||
void BrushPopup::onBrushChanges()
|
||||
{
|
||||
if (isVisible()) {
|
||||
gfx::Region rgn;
|
||||
getDrawableRegion(rgn, DrawableRegionFlags(kCutTopWindows | kUseChildArea));
|
||||
|
||||
regenerate(bounds());
|
||||
invalidate();
|
||||
|
||||
parent()->invalidateRegion(rgn);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user