[aseprite] 220/250: Fix filter preview when zoom level < 100%

Tobias Hansen thansen at moszumanska.debian.org
Sun Dec 20 15:27:33 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 c12cb26875253b41bf5cca7e1f0cdb336ecce431
Author: David Capello <davidcapello at gmail.com>
Date:   Fri Oct 30 17:58:47 2015 -0300

    Fix filter preview when zoom level < 100%
---
 src/app/commands/filters/filter_manager_impl.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/app/commands/filters/filter_manager_impl.cpp b/src/app/commands/filters/filter_manager_impl.cpp
index 13e1205..245192d 100644
--- a/src/app/commands/filters/filter_manager_impl.cpp
+++ b/src/app/commands/filters/filter_manager_impl.cpp
@@ -259,7 +259,8 @@ void FilterManagerImpl::flush()
           m_y+m_offset_y+m_row-1)),
       gfx::Size(
         editor->zoom().apply(m_w),
-        editor->zoom().apply(1)));
+        (editor->zoom().scale() >= 1 ? editor->zoom().apply(1):
+                                       editor->zoom().remove(1))));
 
     gfx::Region reg1(rect);
     gfx::Region reg2;

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