forked from enlightenment/efl
evas/cserve2: Fix image load premultiplication
There was a color problem in elementary_test since elm sets premul to 0 while expedite sets it to 1 during image load.
This commit is contained in:
parent
db66f69104
commit
c0bb73c775
|
@ -459,7 +459,7 @@ image_load(const char *file, const char *key, const char *shmfile,
|
||||||
result->w = property.w;
|
result->w = property.w;
|
||||||
result->h = property.h;
|
result->h = property.h;
|
||||||
|
|
||||||
if (property.alpha)
|
if (property.alpha && property.premul)
|
||||||
{
|
{
|
||||||
result->alpha_sparse = evas_cserve2_image_premul_data((unsigned int *) map,
|
result->alpha_sparse = evas_cserve2_image_premul_data((unsigned int *) map,
|
||||||
result->w * result->h);
|
result->w * result->h);
|
||||||
|
|
Loading…
Reference in New Issue