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.
This commit is contained in:
parent
51e2cafe0e
commit
8393257732
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user