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.

https://bugzilla.gnome.org/show_bug.cgi?id=733385
This commit is contained in:
Tom Beckmann 2014-07-19 02:44:20 +02:00 committed by Emmanuele Bassi
parent 8e56cef40b
commit 72aaeed3f5
1 changed files with 3 additions and 3 deletions

View File

@ -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);
color.red = paint_opacity;
color.green = paint_opacity;
color.blue = paint_opacity;
color.red = 255;
color.green = 255;
color.blue = 255;
color.alpha = paint_opacity;
node = clutter_texture_node_new (priv->texture, &color, min_f, mag_f);