summaryrefslogtreecommitdiff
path: root/clutter/clutter-image.c
diff options
context:
space:
mode:
Diffstat (limited to 'clutter/clutter-image.c')
-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 cfc0ae34e..96dba913f 100644
--- a/clutter/clutter-image.c
+++ b/clutter/clutter-image.c
@@ -119,9 +119,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);