[aseprite] 115/308: Fix redrawing issue when we "delete all brushes"
Tobias Hansen
thansen at moszumanska.debian.org
Tue Mar 8 02:44:59 UTC 2016
This is an automated email from the git hooks/post-receive script.
thansen pushed a commit to branch master
in repository aseprite.
commit 3024bc76042431c71765d197bff5d17be066f408
Author: David Capello <davidcapello at gmail.com>
Date: Tue Dec 15 18:17:42 2015 -0300
Fix redrawing issue when we "delete all brushes"
---
src/app/ui/brush_popup.cpp | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/app/ui/brush_popup.cpp b/src/app/ui/brush_popup.cpp
index c27ca04..4f205c7 100644
--- a/src/app/ui/brush_popup.cpp
+++ b/src/app/ui/brush_popup.cpp
@@ -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);
}
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git
More information about the Pkg-games-commits
mailing list