Fix IcoFormat::onLoad() clearing the image as first step

because sometimes some pixels are not set.
This commit is contained in:
David Capello 2011-04-21 21:08:31 -03:00
parent bda7f6c31d
commit d85305322d

View File

@ -143,6 +143,7 @@ bool IcoFormat::onLoad(FileOp* fop)
int image_index = sprite->getStock()->addImage(image);
Cel* cel = new Cel(0, image_index);
layer->addCel(cel);
image_clear(image, 0);
// Go to the entry start in the file
fseek(f, entry.image_offset, SEEK_SET);