On Tue, Mar 30, 2010 at 4:20 PM, Mikael Liljeroth <[email protected]> wrote: > Hi, I have a question regarding the color sent to the evas engine when > drawing a rectangle in the context. > When I use evas to create the rectangle the color in the context is the same > as the color I sent to evas_object_color_set. > When I am using edje the color seems to be premultiplied when the object is > not opaque. > (I do not have any clip objects, as far as I know). Why could this be?
Because evas expect color to be premultiplied every where and edje ease your job by premultiplying them before calling evas. > Is it correct that the common engine in evas assumes the color is > premultiplied when for example drawing a rectangle with > evas_common_rectangle_draw? Yes. > How and when is the color modified on its way from the edc file to the > context color during rectangle_draw in the engine when drawing a rectangle? Color are premultiplied in edje/src/lib/edje_calc.c at line 1954. > I'm using a rather old revision of the efl libraries and it would be very > difficult for me to upgrade so if anyone knows if this is a bug that > has been fixed in the past year or so it would be very appriciated. -- Cedric BAIL ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
