forked from enlightenment/efl
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:
parent
693a3c3ac7
commit
d507bebc92
|
@ -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
|
||||
|
|
|
@ -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++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue