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:
David Capello 2010-08-13 11:49:52 -03:00
parent a8fcc8b0af
commit 46ff10bede

View File

@ -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: