[clutter/clutter-1.18] canvas: assign white to paint color for texture node
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [clutter/clutter-1.18] canvas: assign white to paint color for texture node
- Date: Wed, 13 Aug 2014 10:36:00 +0000 (UTC)
commit bc1a79db92516bb451279df0d19bc2bc3f5302ea
Author: Tom Beckmann <tomjonabc gmail com>
Date: Sat Jul 19 02:44:20 2014 +0200
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
clutter/clutter-canvas.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/clutter/clutter-canvas.c b/clutter/clutter-canvas.c
index d61a540..e753754 100644
--- a/clutter/clutter-canvas.c
+++ b/clutter/clutter-canvas.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]