[Swfdec] libswfdec/swfdec_text_field.c

Pekka Lampila medar at kemper.freedesktop.org
Sun Oct 14 09:31:52 PDT 2007


 libswfdec/swfdec_text_field.c |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 1d5c1703fd47c7da3271125832a56a2ec35d9aa1
Author: Pekka Lampila <pekka.lampila at iki.fi>
Date:   Sun Oct 14 19:31:42 2007 +0300

    Clip in TextField render, so we don't overflow in horizontal direction

diff --git a/libswfdec/swfdec_text_field.c b/libswfdec/swfdec_text_field.c
index 96284a8..214e338 100644
--- a/libswfdec/swfdec_text_field.c
+++ b/libswfdec/swfdec_text_field.c
@@ -283,6 +283,9 @@ swfdec_text_field_render (SwfdecTextField *text, cairo_t *cr,
 
   swfdec_rect_intersect (&limit, &SWFDEC_GRAPHIC (text)->extents, inval);
 
+  cairo_rectangle (cr, limit.x0, limit.y0, limit.x1, limit.y1);
+  cairo_clip (cr);
+
   if (text->background) {
     cairo_rectangle (cr, limit.x0, limit.y0, limit.x1, limit.y1);
     color = swfdec_color_apply_transform (background_color, trans);


More information about the Swfdec mailing list