diff options
author | joerg <joerg@pkgsrc.org> | 2006-09-20 12:57:46 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2006-09-20 12:57:46 +0000 |
commit | 4db2eca86bf9842f34b84aebb3707c25fb9307e1 (patch) | |
tree | dfd8838e2ea1be136e8838e1d8bc10d627a8e9ea /graphics/py-cairo/patches | |
parent | a4907c853fa35b7e65abf1f6e6491d7dceca2eb3 (diff) | |
download | pkgsrc-4db2eca86bf9842f34b84aebb3707c25fb9307e1.tar.gz |
Fix build with Cairo 1.2 API and require it. Bump revision since DSO
changed.
Diffstat (limited to 'graphics/py-cairo/patches')
-rw-r--r-- | graphics/py-cairo/patches/patch-aa | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/graphics/py-cairo/patches/patch-aa b/graphics/py-cairo/patches/patch-aa new file mode 100644 index 00000000000..26195d882d5 --- /dev/null +++ b/graphics/py-cairo/patches/patch-aa @@ -0,0 +1,22 @@ +$NetBSD: patch-aa,v 1.1 2006/09/20 12:57:46 joerg Exp $ + +--- cairo/pycairo-surface.c.orig 2005-09-28 14:35:09.000000000 +0000 ++++ cairo/pycairo-surface.c +@@ -595,7 +595,7 @@ pdf_surface_set_dpi (PycairoPDFSurface * + + if (!PyArg_ParseTuple(args, "dd:PDFSurface.set_dpi", &x_dpi, &y_dpi)) + return NULL; +- cairo_pdf_surface_set_dpi (o->surface, x_dpi, y_dpi); ++ cairo_surface_set_fallback_resolution (o->surface, x_dpi, y_dpi); + Py_RETURN_NONE; + } + +@@ -688,7 +688,7 @@ ps_surface_set_dpi (PycairoPSSurface *o, + + if (!PyArg_ParseTuple(args, "dd:PSSurface.set_dpi", &x_dpi, &y_dpi)) + return NULL; +- cairo_ps_surface_set_dpi (o->surface, x_dpi, y_dpi); ++ cairo_surface_set_fallback_resolution (o->surface, x_dpi, y_dpi); + Py_RETURN_NONE; + } + |