pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/graphics/cairo Add a patch from the mono project:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3b0055a81302
branches:  trunk
changeset: 477498:3b0055a81302
user:      recht <recht%pkgsrc.org@localhost>
date:      Sat Jul 03 23:01:36 2004 +0000

description:
Add a patch from the mono project:
pixman_image_set_clip_region expects to take ownership of the
passed-in region, so we create a copy to give it.

bump PKGREVISION to 1

diffstat:

 graphics/cairo/Makefile         |   3 ++-
 graphics/cairo/distinfo         |   3 ++-
 graphics/cairo/patches/patch-aa |  23 +++++++++++++++++++++++
 3 files changed, 27 insertions(+), 2 deletions(-)

diffs (49 lines):

diff -r 6341e81b954b -r 3b0055a81302 graphics/cairo/Makefile
--- a/graphics/cairo/Makefile   Sat Jul 03 23:00:36 2004 +0000
+++ b/graphics/cairo/Makefile   Sat Jul 03 23:01:36 2004 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.10 2004/06/26 20:24:03 recht Exp $
+# $NetBSD: Makefile,v 1.11 2004/07/03 23:01:36 recht Exp $
 
 DISTNAME=      cairo-0.1.23
+PKGREVISION=   1
 CATEGORIES=    graphics
 MASTER_SITES=  http://cairographics.org/snapshots/
 
diff -r 6341e81b954b -r 3b0055a81302 graphics/cairo/distinfo
--- a/graphics/cairo/distinfo   Sat Jul 03 23:00:36 2004 +0000
+++ b/graphics/cairo/distinfo   Sat Jul 03 23:01:36 2004 +0000
@@ -1,4 +1,5 @@
-$NetBSD: distinfo,v 1.4 2004/05/11 17:36:25 recht Exp $
+$NetBSD: distinfo,v 1.5 2004/07/03 23:01:36 recht Exp $
 
 SHA1 (cairo-0.1.23.tar.gz) = ed0bea8a6f1382803989c047631f3d6d82c864c3
 Size (cairo-0.1.23.tar.gz) = 393051 bytes
+SHA1 (patch-aa) = 0c9aba36a2c9a114e9b0da08ea0df0bf3f336e52
diff -r 6341e81b954b -r 3b0055a81302 graphics/cairo/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/graphics/cairo/patches/patch-aa   Sat Jul 03 23:01:36 2004 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-aa,v 1.1 2004/07/03 23:01:36 recht Exp $
+
+--- src/cairo_image_surface.c.orig     2004-04-14 03:06:15.000000000 +0200
++++ src/cairo_image_surface.c
+@@ -462,7 +462,17 @@ cairo_int_status_t
+ _cairo_image_surface_set_clip_region (cairo_image_surface_t *surface,
+                                     pixman_region16_t *region)
+ {
+-    pixman_image_set_clip_region (surface->pixman_image, region);
++    if (region) {
++        pixman_region16_t *rcopy;
++
++        rcopy = pixman_region_create();
++        /* pixman_image_set_clip_region expects to take ownership of the
++         * passed-in region, so we create a copy to give it. */
++        pixman_region_copy (rcopy, region);
++        pixman_image_set_clip_region (surface->pixman_image, rcopy);
++    } else {
++        pixman_image_set_clip_region (surface->pixman_image, region);
++    }
+ 
+     return CAIRO_STATUS_SUCCESS;
+ }



Home | Main Index | Thread Index | Old Index