Commit bc1a79db authored by Tom Beckmann's avatar Tom Beckmann Committed by Emmanuele Bassi

canvas: assign white to paint color for texture node

To get correct premultiplied opacity on a canvas content, white needs
to be assigned to the color that is passed to the texture node. The
content will be very dark for lower opacity values otherwise.
parent 02ffeac8
......@@ -389,9 +389,9 @@ clutter_canvas_paint_content (ClutterContent *content,
clutter_actor_get_content_scaling_filters (actor, &min_f, &mag_f);
repeat = clutter_actor_get_content_repeat (actor); = paint_opacity; = paint_opacity; = paint_opacity; = 255; = 255; = 255;
color.alpha = paint_opacity;
node = clutter_texture_node_new (priv->texture, &color, min_f, mag_f);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment