[aseprite] 106/196: Fix bug painting selection edges when zoom < 100% (fix #905)

Tobias Hansen thansen at moszumanska.debian.org
Wed Apr 20 18:50:07 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 7934c975ca007d7b25faa8124e9a94f6ecf938a1
Author: David Capello <davidcapello at gmail.com>
Date:   Thu Mar 24 18:24:32 2016 -0300

    Fix bug painting selection edges when zoom < 100% (fix #905)
---
 src/app/ui/editor/editor.cpp | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/src/app/ui/editor/editor.cpp b/src/app/ui/editor/editor.cpp
index 6e4bb70..6310924 100644
--- a/src/app/ui/editor/editor.cpp
+++ b/src/app/ui/editor/editor.cpp
@@ -728,9 +728,11 @@ void Editor::drawMask(Graphics* g)
     CheckedDrawMode checked(g, m_antsOffset);
     gfx::Rect bounds = m_zoom.apply(seg.bounds());
 
-    if (!seg.open()) {
-      if (seg.vertical()) --bounds.x;
-      else --bounds.y;
+    if (m_zoom.scale() >= 1.0) {
+      if (!seg.open()) {
+        if (seg.vertical()) --bounds.x;
+        else --bounds.y;
+      }
     }
 
     // The color doesn't matter, we are using CheckedDrawMode

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