Set as mask color the bg index specified in the GIF file

This commit is contained in:
David Capello 2015-09-24 23:51:58 -03:00
parent 732f527eb1
commit d5fea43972

View File

@ -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);