Put the local colormap entry in the palette if we need to remap m_bgIndex

This commit is contained in:
David Capello 2015-09-24 23:47:33 -03:00
parent 8db6693136
commit 5a339f7f55

View File

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