[cairo] [patch] fix box init from rectangle

Andrei Volykhin andrei.volykhin at gmail.com
Fri Oct 19 01:05:24 PDT 2012


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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20121019/b403fa0e/attachment.html>


More information about the cairo mailing list