[aseprite] 238/250: Fix pink border in tabs on Allegro backend

Tobias Hansen thansen at moszumanska.debian.org
Sun Dec 20 15:27:35 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 b659747a8c370e87c5c2c5bbca3a09718eb9e830
Author: David Capello <davidcapello at gmail.com>
Date:   Fri Nov 6 10:40:13 2015 -0300

    Fix pink border in tabs on Allegro backend
---
 src/app/ui/tabs.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/app/ui/tabs.cpp b/src/app/ui/tabs.cpp
index b00e52e..996156f 100644
--- a/src/app/ui/tabs.cpp
+++ b/src/app/ui/tabs.cpp
@@ -938,7 +938,10 @@ void Tabs::createFloatingOverlay(Tab* tab)
     for (int y=0; y<surface->height(); ++y)
       for (int x=0; x<surface->width(); ++x) {
         gfx::Color c = lock->getPixel(x, y);
-        c = (c != gfx::rgba(255, 0, 255) ? gfx::seta(c, 255): gfx::ColorNone);
+        c = (c != gfx::rgba(255, 0, 255, 0) &&
+             c != gfx::rgba(255, 0, 255, 255) ?
+             gfx::seta(c, 255):
+             gfx::ColorNone);
         lock->putPixel(c, x, y);
       }
   }

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