[aseprite] 91/250: Set as mask color the bg index specified in the GIF file

Tobias Hansen thansen at moszumanska.debian.org
Sun Dec 20 15:27:16 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 d5fea439727a0fa23d1317f02087ba729b0205e3
Author: David Capello <davidcapello at gmail.com>
Date:   Thu Sep 24 23:51:58 2015 -0300

    Set as mask color the bg index specified in the GIF file
---
 src/app/file/gif_format.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/app/file/gif_format.cpp b/src/app/file/gif_format.cpp
index 569e2c3..f47facd 100644
--- a/src/app/file/gif_format.cpp
+++ b/src/app/file/gif_format.cpp
@@ -673,6 +673,8 @@ private:
 
     m_currentImage.reset(Image::create(IMAGE_INDEXED, w, h));
     m_previousImage.reset(Image::create(IMAGE_INDEXED, w, h));
+    m_currentImage->setMaskColor(m_bgIndex);
+    m_previousImage->setMaskColor(m_bgIndex);
     clear_image(m_currentImage.get(), m_bgIndex);
     clear_image(m_previousImage.get(), m_bgIndex);
 

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