[patch] fix box init from rectangle

Andrei Volykhin <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <CAGgbaz+ump5sGauaKNWujWeLQkNREP0xKBhFt_t=YXiFeR_h5Q@mail.gmail.com>
diff --git a/src/cairo-boxes.c b/src/cairo-boxes.c
index 63b68dd..fc10803 100644
--- a/src/cairo-boxes.c
+++ b/src/cairo-boxes.c
@@ -61,6 +61,7 @@ _cairo_boxes_init_from_rectangle (cairo_boxes_t *boxes,

     _cairo_box_from_integers (&boxes->chunks.base[0], x, y, w, h);
     boxes->num_boxes = 1;
+    boxes->chunks.count = 1;
 }

 void


cairo-traps-compositor (gl backend):

gl/span compositor delegate to render glyphs to gl/traps compositor.
In the case if "extents->clip" nonrectangular, traps-compositor renders
glyphs through "mask" surface (create_composite_mask (...))

Due to incorrect initialization of box from rectangle, function
"compositor->fill_boxes" doesn't clean the created surface.

-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.