summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian.droege@collabora.co.uk>2009-11-26 14:30:33 +0100
committerSebastian Dröge <sebastian.droege@collabora.co.uk>2009-11-26 14:31:55 +0100
commit83932577325d030bfa40a0c1dbc22683957b6b2a (patch)
tree8d30ffc24c0c8bb4cac12d482e724e260b798a0d
parent51e2cafe0e731fa77ff210779d84e3cfa464eb5a (diff)
Revert "textoverlay: First draw outline text and then the real text"
This reverts commit 60aa09d28c1f9fd29b56876d7ac6c0366d6cef4d. First drawing the real text and then the outline produces ugly text in lower resolutions. The outline line width needs to be somehow changed relative to the resolution. Fixes bug #602924.
-rw-r--r--ext/pango/gsttextoverlay.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/pango/gsttextoverlay.c b/ext/pango/gsttextoverlay.c
index a79cdd776..12428c61e 100644
--- a/ext/pango/gsttextoverlay.c
+++ b/ext/pango/gsttextoverlay.c
@@ -1253,12 +1253,6 @@ gst_text_overlay_render_pangocairo (GstTextOverlay * overlay,
pango_cairo_show_layout (cr, overlay->layout);
cairo_restore (cr);
- /* draw text */
- cairo_save (cr);
- cairo_set_source_rgb (cr, 1.0, 1.0, 1.0);
- pango_cairo_show_layout (cr, overlay->layout);
- cairo_restore (cr);
-
/* draw outline text */
cairo_save (cr);
cairo_set_source_rgb (cr, 0.0, 0.0, 0.0);
@@ -1267,6 +1261,12 @@ gst_text_overlay_render_pangocairo (GstTextOverlay * overlay,
cairo_stroke (cr);
cairo_restore (cr);
+ /* draw text */
+ cairo_save (cr);
+ cairo_set_source_rgb (cr, 1.0, 1.0, 1.0);
+ pango_cairo_show_layout (cr, overlay->layout);
+ cairo_restore (cr);
+
cairo_destroy (cr);
cairo_surface_destroy (surface);
overlay->image_width = width;