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
|
@ -483,10 +483,17 @@ _evas_image_load_frame_image_data(Image_Entry *ie, GifFileType *gif, Image_Entry
|
|||
}
|
||||
else
|
||||
{
|
||||
r = cmap->Colors[rows[i1][j1]].Red;
|
||||
g = cmap->Colors[rows[i1][j1]].Green;
|
||||
b = cmap->Colors[rows[i1][j1]].Blue;
|
||||
*ptr++ = ARGB_JOIN(0xff, r, g, b);
|
||||
if (rows[i1][j1] == alpha)
|
||||
{
|
||||
ptr++ ;
|
||||
}
|
||||
else
|
||||
{
|
||||
r = cmap->Colors[rows[i1][j1]].Red;
|
||||
g = cmap->Colors[rows[i1][j1]].Green;
|
||||
b = cmap->Colors[rows[i1][j1]].Blue;
|
||||
*ptr++ = ARGB_JOIN(0xff, r, g, b);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue