mirror of
https://github.com/aseprite/aseprite.git
synced 2025-03-10 10:13:35 +00:00
Fix background color when we render indexed images.
To render an indexed image we start with color 0 (RGBA) only if there is not a background layer, in other case, when the background exists we clear with the first palette color entry (index=0). This patch fix commit 3ea39bb211bee41c737c54a036b565411fb24300.
This commit is contained in:
parent
a8fcc8b0af
commit
46ff10bede
@ -378,7 +378,8 @@ Image* RenderEngine::renderSprite(const Sprite* sprite,
|
||||
|
||||
case IMAGE_INDEXED:
|
||||
zoomed_func = merge_zoomed_image<RgbTraits, IndexedTraits>;
|
||||
bg_color = sprite->getPalette(frame)->getEntry(0);
|
||||
if (!need_checked_bg)
|
||||
bg_color = sprite->getPalette(frame)->getEntry(0);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
Loading…
x
Reference in New Issue
Block a user