[aseprite] 31/64: Fix selection feedback when we have foreground/background color w/alpha=0 (fix #1133)

Tobias Hansen thansen at moszumanska.debian.org
Tue Jun 21 14:43:02 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 cf380ab1a283018af2925b15f3b46a438cc15d5a
Author: David Capello <davidcapello at gmail.com>
Date:   Fri May 13 16:00:19 2016 -0300

    Fix selection feedback when we have foreground/background color w/alpha=0 (fix #1133)
---
 src/doc/blend_funcs.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/doc/blend_funcs.cpp b/src/doc/blend_funcs.cpp
index 3435cbb..134d2cb 100644
--- a/src/doc/blend_funcs.cpp
+++ b/src/doc/blend_funcs.cpp
@@ -134,7 +134,7 @@ color_t rgba_blender_merge(color_t backdrop, color_t src, int opacity)
 color_t rgba_blender_neg_bw(color_t backdrop, color_t src, int opacity)
 {
   if (!(backdrop & rgba_a_mask))
-    return src;
+    return rgba(0, 0, 0, 255);
   else if (rgba_luma(backdrop) < 128)
     return rgba(255, 255, 255, 255);
   else

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