Gif loader didn't initialize frame buffer of first frame.

fix gif loader to initialize first frame's image data area


SVN revision: 74704
This commit is contained in:
Jiyoun Park 2012-08-01 04:33:12 +00:00
parent 693a3c3ac7
commit d507bebc92
2 changed files with 9 additions and 1 deletions

View File

@ -924,6 +924,10 @@
its children dont change their layer value and pointer with it, thus
getting layer from them get you the wrong one.
2012-07026 Cedric Bail
2012-07-26 Cedric Bail
* Keep track of inactive proxied object change so we always update the proxy correctly.
2012-08-01 Jiyoun Park(jypark)
* Fix gif load bug. we initialize first frame buffer of gif loader

View File

@ -265,6 +265,7 @@ _evas_image_load_frame_image_data(Image_Entry *ie, GifFileType *gif, Image_Entry
return EINA_FALSE;
}
}
if (scale_ratio > 1)
{
tmp = malloc(w * sizeof(GifPixelType));
@ -322,6 +323,7 @@ _evas_image_load_frame_image_data(Image_Entry *ie, GifFileType *gif, Image_Entry
if (tmp) free(tmp);
tmp = NULL;
}
alpha = gif_frame->frame_info.transparent;
siz = cache_w *cache_h * sizeof(DATA32);
frame->data = malloc(siz);
@ -506,6 +508,8 @@ _evas_image_load_frame_image_data(Image_Entry *ie, GifFileType *gif, Image_Entry
}
else /* first frame decoding */
{
memset(ptr, 0, siz);
/* fill background color */
for (i = 0; i < cache_h; i++)
{