mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-04 10:14:14 +00:00
Put the local colormap entry in the palette if we need to remap m_bgIndex
This commit is contained in:
parent
8db6693136
commit
5a339f7f55
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user