[aseprite] 87/250: Put the local colormap entry in the palette if we need to remap m_bgIndex
Tobias Hansen
thansen at moszumanska.debian.org
Sun Dec 20 15:27:15 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 5a339f7f55c2c3ad07df51481d24e313492e5c72
Author: David Capello <davidcapello at gmail.com>
Date: Thu Sep 24 23:47:33 2015 -0300
Put the local colormap entry in the palette if we need to remap m_bgIndex
---
src/app/file/gif_format.cpp | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/app/file/gif_format.cpp b/src/app/file/gif_format.cpp
index e637405..071fc72 100644
--- a/src/app/file/gif_format.cpp
+++ b/src/app/file/gif_format.cpp
@@ -535,9 +535,10 @@ private:
}
if (needsExtraBgColor) {
+ int i = m_bgIndex;
int j = base++;
- palette->setEntry(j, palette->getEntry(m_bgIndex));
- m_remap.map(m_bgIndex, j);
+ palette->setEntry(j, colormap2rgba(colormap, i));
+ m_remap.map(i, j);
}
ASSERT(base == palette->size());
--
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