[aseprite] 04/134: Fix #505 - Brush leaves artifact pixels everywhere

Tobias Hansen thansen at moszumanska.debian.org
Sat Mar 14 17:09:53 UTC 2015


This is an automated email from the git hooks/post-receive script.

thansen pushed a commit to branch master
in repository aseprite.

commit 604a17d25b3826ad77800e22ee7d7feabc240cb5
Author: David Capello <davidcapello at gmail.com>
Date:   Thu Oct 23 11:23:31 2014 -0300

    Fix #505 - Brush leaves artifact pixels everywhere
---
 src/app/ui/editor/editor.cpp | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/app/ui/editor/editor.cpp b/src/app/ui/editor/editor.cpp
index bf67ef1..4b96f7d 100644
--- a/src/app/ui/editor/editor.cpp
+++ b/src/app/ui/editor/editor.cpp
@@ -1017,9 +1017,16 @@ void Editor::updateQuicktool()
         return;
     }
 
+    // Hide the drawing cursor with the current tool brush size before
+    // we change the quicktool. In this way we avoid using the
+    // quicktool brush size to clean the current tool cursor.
+    hideDrawingCursor();
+
     tools::Tool* old_quicktool = m_quicktool;
     m_quicktool = m_customizationDelegate->getQuickTool(current_tool);
 
+    showDrawingCursor();
+
     // If the tool has changed, we must to update the status bar because
     // the new tool can display something different in the status bar (e.g. Eyedropper)
     if (old_quicktool != m_quicktool) {

-- 
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