Revert "textoverlay: First draw outline text and then the real text"

This reverts commit 60aa09d28c.

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.
This commit is contained in:
Sebastian Dröge 2009-11-26 14:30:33 +01:00
parent 51e2cafe0e
commit 8393257732

View file

@ -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;