mirror of
https://github.com/brl/mutter.git
synced 2024-11-10 07:56:14 -05:00
actor: Use the real opacity when clearing the stage
The paint opacity for a top level is always overridden to be the full value, since it's a composited value and we want to paint our scene. When clearing the stage framebuffer, though, we want to use the actual opacity, if ClutterStage:use-alpha is set.
This commit is contained in:
parent
21ce9bc08b
commit
8b8aa0b492
@ -3665,13 +3665,19 @@ clutter_actor_paint_node (ClutterActor *actor,
|
||||
|
||||
if (clutter_stage_get_use_alpha (CLUTTER_STAGE (actor)))
|
||||
{
|
||||
bg_color.alpha = clutter_actor_get_paint_opacity_internal (actor)
|
||||
bg_color.alpha = priv->opacity
|
||||
* priv->bg_color.alpha
|
||||
/ 255;
|
||||
}
|
||||
else
|
||||
bg_color.alpha = 255;
|
||||
|
||||
CLUTTER_NOTE (PAINT, "Stage clear color: (%d, %d, %d, %d)",
|
||||
bg_color.red,
|
||||
bg_color.green,
|
||||
bg_color.blue,
|
||||
bg_color.alpha);
|
||||
|
||||
clear_flags = COGL_BUFFER_BIT_DEPTH;
|
||||
if (!clutter_stage_get_no_clear_hint (CLUTTER_STAGE (actor)))
|
||||
clear_flags |= COGL_BUFFER_BIT_COLOR;
|
||||
|
Loading…
Reference in New Issue
Block a user