forked from enlightenment/efl
Evas: fix gif cannot decode alpha value correctly.
This commit is contained in:
parent
a553f9459f
commit
ebf0cd6728
|
@ -1,3 +1,7 @@
|
||||||
|
2013-06-05 Jiyou Park
|
||||||
|
|
||||||
|
* Evas: Fix gif cannot decode alpha value correctly.
|
||||||
|
|
||||||
2013-06-04 Jean-Philippe Andre
|
2013-06-04 Jean-Philippe Andre
|
||||||
|
|
||||||
* Evas: improve stability of Evas_Cserve2.
|
* Evas: improve stability of Evas_Cserve2.
|
||||||
|
|
2
NEWS
2
NEWS
|
@ -327,3 +327,5 @@ Fixes:
|
||||||
* Fix eeze sensors to not segv on shutdown
|
* Fix eeze sensors to not segv on shutdown
|
||||||
* Evas: correctly detect if a loader support asynchronous preloading.
|
* Evas: correctly detect if a loader support asynchronous preloading.
|
||||||
* Evas: improve stability of Evas_Cserve2.
|
* Evas: improve stability of Evas_Cserve2.
|
||||||
|
* Evas: Fix gif cannot decode alpha value correctly.
|
||||||
|
|
||||||
|
|
|
@ -451,10 +451,17 @@ _evas_image_load_frame_image_data(Eina_File *f,
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
r = cmap->Colors[rows[i1][j1 * scale_ratio]].Red;
|
if (rows[i][j * scale_ratio] == alpha)
|
||||||
g = cmap->Colors[rows[i1][j1 * scale_ratio]].Green;
|
{
|
||||||
b = cmap->Colors[rows[i1][j1 * scale_ratio]].Blue;
|
ptr++ ;
|
||||||
*ptr++ = ARGB_JOIN(0xff, r, g, b);
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -488,10 +495,17 @@ _evas_image_load_frame_image_data(Eina_File *f,
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
r = cmap->Colors[rows[i1][j1 * scale_ratio]].Red;
|
if (rows[i][j * scale_ratio] == alpha)
|
||||||
g = cmap->Colors[rows[i1][j1 * scale_ratio]].Green;
|
{
|
||||||
b = cmap->Colors[rows[i1][j1 * scale_ratio]].Blue;
|
ptr++ ;
|
||||||
*ptr++ = ARGB_JOIN(0xff, r, g, b);
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -538,7 +552,7 @@ _evas_image_load_frame_image_data(Eina_File *f,
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (rows[i1][j1] == alpha)
|
if (rows[i1][j1 * scale_ratio] == alpha)
|
||||||
{
|
{
|
||||||
ptr++;
|
ptr++;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue