[gnome-shell] St: draw the actor at full opacity when creating shadow material
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] St: draw the actor at full opacity when creating shadow material
- Date: Sat, 21 Feb 2015 02:02:06 +0000 (UTC)
commit 07664e7d2f5bcc97fd137fd4a228be54046fe5a9
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Tue Jun 5 00:13:26 2012 +0200
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
src/st/st-private.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/st/st-private.c b/src/st/st-private.c
index 4096d15..c928e6a 100644
--- a/src/st/st-private.c
+++ b/src/st/st-private.c
@@ -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 ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]