forked from enlightenment/efl
fix gif cannot deal with transparent color.
when make first frame, it didn't consider alpha value. change code to deal with alpha value SVN revision: 68450
This commit is contained in:
parent
fd482cff6b
commit
b59b60032a
|
@ -481,6 +481,12 @@ _evas_image_load_frame_image_data(Image_Entry *ie, GifFileType *gif, Image_Entry
|
|||
*ptr = bg_val;
|
||||
ptr++;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (rows[i1][j1] == alpha)
|
||||
{
|
||||
ptr++ ;
|
||||
}
|
||||
else
|
||||
{
|
||||
r = cmap->Colors[rows[i1][j1]].Red;
|
||||
|
@ -492,6 +498,7 @@ _evas_image_load_frame_image_data(Image_Entry *ie, GifFileType *gif, Image_Entry
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (i = 0; i < h; i++)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue