mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
St: draw the actor at full opacity when creating shadow material
When creating the shadow, we should ignore the opacity set on the actor and its parent, as it will be applied again at a later stage. https://bugzilla.gnome.org/show_bug.cgi?id=677412
This commit is contained in:
parent
6da0ebe35f
commit
07664e7d2f
1 changed files with 3 additions and 0 deletions
|
|
@ -460,7 +460,10 @@ _st_create_shadow_pipeline_from_actor (StShadow *shadow_spec,
|
|||
cogl_framebuffer_clear (fb, COGL_BUFFER_BIT_COLOR, &clear_color);
|
||||
cogl_framebuffer_translate (fb, -box.x1, -box.y1, 0);
|
||||
cogl_framebuffer_orthographic (fb, 0, width, height, 0, 0, 1.0);
|
||||
|
||||
clutter_actor_set_opacity_override (actor, 255);
|
||||
clutter_actor_paint (actor);
|
||||
clutter_actor_set_opacity_override (actor, -1);
|
||||
|
||||
G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
|
||||
cogl_pop_framebuffer ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue