gfx/cairo/fixup-unbounded.patch

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/cairo/fixup-unbounded.patch	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,22 @@
     1.4 +diff --git a/gfx/cairo/cairo/src/cairo-image-surface.c b/gfx/cairo/cairo/src/cairo-image-surface.c
     1.5 +--- a/gfx/cairo/cairo/src/cairo-image-surface.c
     1.6 ++++ b/gfx/cairo/cairo/src/cairo-image-surface.c
     1.7 +@@ -1797,17 +1797,17 @@ _cairo_image_surface_fixup_unbounded_box
     1.8 + 					    cairo_boxes_t *boxes)
     1.9 + {
    1.10 +     cairo_boxes_t clear;
    1.11 +     cairo_box_t box;
    1.12 +     cairo_status_t status;
    1.13 +     struct _cairo_boxes_chunk *chunk;
    1.14 +     int i;
    1.15 + 
    1.16 +-    if (boxes->num_boxes <= 1 && clip_region == NULL)
    1.17 ++    if (boxes->num_boxes < 1 && clip_region == NULL)
    1.18 + 	return _cairo_image_surface_fixup_unbounded (dst, extents, NULL);
    1.19 + 
    1.20 +     _cairo_boxes_init (&clear);
    1.21 + 
    1.22 +     box.p1.x = _cairo_fixed_from_int (extents->unbounded.x + extents->unbounded.width);
    1.23 +     box.p1.y = _cairo_fixed_from_int (extents->unbounded.y);
    1.24 +     box.p2.x = _cairo_fixed_from_int (extents->unbounded.x);
    1.25 +     box.p2.y = _cairo_fixed_from_int (extents->unbounded.y + extents->unbounded.height);

mercurial