Evas: fix gif bug related with scale down decode.

This commit is contained in:
Jiyoun Park 2013-04-15 13:45:18 +09:00
parent 8aea52b847
commit ccea9eca41
3 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2013-04-14 Jiyoun Park
* Evas: fix gif bug related with scale down decode.
2013-04-14 Jiyoun Park
* Evas: fix gif decoding bug related with background color.

3
NEWS
View File

@ -240,5 +240,6 @@ Fixes:
* Edje entry: When cursor is located to each edge, entry now doesn't grab events for cursor movement.
* Evas map: don't be crashed even if image size is 0.
* Evas: Don't update evas update area by the clipper if the image obj visible is changed.
* Evas: fix gif decoding bug related with background color.
* Evas: fix gif decoding bug related with background color.
* Evas: fix gif bug related with scale down decode.

View File

@ -548,9 +548,9 @@ _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;
r = cmap->Colors[rows[i1][j1 * scale_ratio]].Red;
g = cmap->Colors[rows[i1][j1 * scale_ratio]].Green;
b = cmap->Colors[rows[i1][j1 * scale_ratio]].Blue;
*ptr++ = ARGB_JOIN(0xff, r, g, b);
}
}