forked from enlightenment/efl
Make sure image colorspace is properly set.
SVN revision: 31889
This commit is contained in:
parent
193bdf421f
commit
2c2ca77d5f
|
@ -175,6 +175,7 @@ EAPI Evas_Object *
|
||||||
evas_object_image_add(Evas *e)
|
evas_object_image_add(Evas *e)
|
||||||
{
|
{
|
||||||
Evas_Object *obj;
|
Evas_Object *obj;
|
||||||
|
Evas_Object_Image *o;
|
||||||
|
|
||||||
MAGIC_CHECK(e, Evas, MAGIC_EVAS);
|
MAGIC_CHECK(e, Evas, MAGIC_EVAS);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -182,6 +183,9 @@ evas_object_image_add(Evas *e)
|
||||||
obj = evas_object_new();
|
obj = evas_object_new();
|
||||||
evas_object_image_init(obj);
|
evas_object_image_init(obj);
|
||||||
evas_object_inject(obj, e);
|
evas_object_inject(obj, e);
|
||||||
|
o = (Evas_Object_Image *)(obj->object_data);
|
||||||
|
o->cur.cspace = obj->layer->evas->engine.func->image_colorspace_get(obj->layer->evas->engine.data.output,
|
||||||
|
o->engine_data);
|
||||||
return obj;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1491,8 +1495,7 @@ evas_object_image_colorspace_get(Evas_Object *obj)
|
||||||
MAGIC_CHECK(o, Evas_Object_Image, MAGIC_OBJ_IMAGE);
|
MAGIC_CHECK(o, Evas_Object_Image, MAGIC_OBJ_IMAGE);
|
||||||
return EVAS_COLORSPACE_ARGB8888;
|
return EVAS_COLORSPACE_ARGB8888;
|
||||||
MAGIC_CHECK_END();
|
MAGIC_CHECK_END();
|
||||||
return obj->layer->evas->engine.func->image_colorspace_get(obj->layer->evas->engine.data.output,
|
return o->cur.cspace;
|
||||||
o->engine_data);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue