mirror of
https://github.com/brl/mutter.git
synced 2025-03-10 13:25:05 +00:00
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.
This commit is contained in:
parent
c87b794739
commit
32ccff8525
@ -119,9 +119,12 @@ clutter_image_paint_content (ClutterContent *content,
|
|||||||
clutter_actor_get_content_scaling_filters (actor, &min_f, &mag_f);
|
clutter_actor_get_content_scaling_filters (actor, &min_f, &mag_f);
|
||||||
repeat = clutter_actor_get_content_repeat (actor);
|
repeat = clutter_actor_get_content_repeat (actor);
|
||||||
|
|
||||||
color.red = paint_opacity;
|
/* ClutterTextureNode will premultiply the blend color, so we
|
||||||
color.green = paint_opacity;
|
* want it to be white with the paint opacity
|
||||||
color.blue = paint_opacity;
|
*/
|
||||||
|
color.red = 255;
|
||||||
|
color.green = 255;
|
||||||
|
color.blue = 255;
|
||||||
color.alpha = paint_opacity;
|
color.alpha = paint_opacity;
|
||||||
|
|
||||||
node = clutter_texture_node_new (priv->texture, &color, min_f, mag_f);
|
node = clutter_texture_node_new (priv->texture, &color, min_f, mag_f);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user