From d85305322d8ac2c86d99bab022bdc00f122b287f Mon Sep 17 00:00:00 2001 From: David Capello Date: Thu, 21 Apr 2011 21:08:31 -0300 Subject: [PATCH] Fix IcoFormat::onLoad() clearing the image as first step because sometimes some pixels are not set. --- src/file/ico_format.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/file/ico_format.cpp b/src/file/ico_format.cpp index ea1ee6ec8..65cc71993 100644 --- a/src/file/ico_format.cpp +++ b/src/file/ico_format.cpp @@ -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);