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:
Jiyoun Park 2012-02-26 10:46:56 +00:00
parent fd482cff6b
commit b59b60032a
1 changed files with 11 additions and 4 deletions

View File

@ -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);
}
}
}
}