[gst-cvs] gst-plugins-base: textoverlay: Do shading as first operation

Sebastian Dröge slomo at kemper.freedesktop.org
Thu Oct 22 00:39:42 PDT 2009


Module: gst-plugins-base
Branch: master
Commit: 21ad7547a0d3b2179a9042be1b773f161e902a63
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=21ad7547a0d3b2179a9042be1b773f161e902a63

Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date:   Thu Oct 22 09:31:34 2009 +0200

textoverlay: Do shading as first operation

---

 ext/pango/gsttextoverlay.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/ext/pango/gsttextoverlay.c b/ext/pango/gsttextoverlay.c
index 410261b..7002d60 100644
--- a/ext/pango/gsttextoverlay.c
+++ b/ext/pango/gsttextoverlay.c
@@ -1239,6 +1239,9 @@ gst_text_overlay_render_pangocairo (GstTextOverlay * overlay,
 
   cairo_set_operator (cr, CAIRO_OPERATOR_OVER);
 
+  if (overlay->want_shading)
+    cairo_paint_with_alpha (cr, overlay->shading_value);
+
   /* apply transformations */
   cairo_set_matrix (cr, &cairo_matrix);
 
@@ -1259,10 +1262,6 @@ gst_text_overlay_render_pangocairo (GstTextOverlay * overlay,
   cairo_stroke_preserve (cr);
   cairo_restore (cr);
 
-  if (overlay->want_shading) {
-    cairo_paint_with_alpha (cr, overlay->shading_value);
-  }
-
   /* draw text */
   cairo_save (cr);
   cairo_set_source_rgb (cr, 1.0, 1.0, 1.0);





More information about the Gstreamer-commits mailing list