summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@gnome.org>2013-10-10 13:31:50 +0100
committerEmmanuele Bassi <ebassi@gnome.org>2013-10-10 13:40:54 +0100
commit3b0bd7e47cb3370cc71a6a39e4fa19e8b25e9be9 (patch)
treea24f2b94cf1a6696328161cf74140c3b522d0100
parent3ebd8fd4fcbb7e4762394a6d212fa1a5760475d0 (diff)
downloadclutter-3b0bd7e47cb3370cc71a6a39e4fa19e8b25e9be9.tar.gz
image: Do not premultiply the blend color
ClutterTextureNode will do that for us when converting the ClutterColor to a CoglColor, so we can simply pass a white color with the correct alpha channel.
-rw-r--r--clutter/clutter-image.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/clutter/clutter-image.c b/clutter/clutter-image.c
index 7ae9839ee..9344114ad 100644
--- a/clutter/clutter-image.c
+++ b/clutter/clutter-image.c
@@ -121,9 +121,12 @@ clutter_image_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;
+ /* ClutterTextureNode will premultiply the blend color, so we
+ * want it to be white with the 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);