Fix issue #8: saving .gif files with transparent backgrounds

does not clear the previous frame.
This commit is contained in:
David Capello 2011-03-01 19:22:17 -03:00
parent 26715e1a08
commit 824c309c8f

View File

@ -410,6 +410,7 @@ bool GifFormat::onSave(FileOp* fop)
} }
// If the sprite is Indexed, we can render directly into "current_image". // If the sprite is Indexed, we can render directly into "current_image".
else { else {
image_clear(current_image, 0);
layer_render(sprite->getFolder(), current_image, 0, 0, frame_num); layer_render(sprite->getFolder(), current_image, 0, 0, frame_num);
} }