summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2005-07-31 07:59:53 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2005-07-31 07:59:53 +0800
commitbbc6126a7bb583c0f20207912faf15fbc4beacf2 (patch)
tree22d90a41fd614f0e9d9cf7f5dbc77c4dab91e116
parentecbd247f2875a079db1e3b91c8c8c8751c82e173 (diff)
downloadmarcuscom-ports-bbc6126a7bb583c0f20207912faf15fbc4beacf2.tar
marcuscom-ports-bbc6126a7bb583c0f20207912faf15fbc4beacf2.tar.gz
marcuscom-ports-bbc6126a7bb583c0f20207912faf15fbc4beacf2.tar.bz2
marcuscom-ports-bbc6126a7bb583c0f20207912faf15fbc4beacf2.tar.lz
marcuscom-ports-bbc6126a7bb583c0f20207912faf15fbc4beacf2.tar.xz
marcuscom-ports-bbc6126a7bb583c0f20207912faf15fbc4beacf2.tar.zst
marcuscom-ports-bbc6126a7bb583c0f20207912faf15fbc4beacf2.zip
Fix the build with cairo-0.6.0.
Submitted by: Yasuda Keisuke <kysd@po.harenet.ne.jp> git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@4364 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r--graphics/py-cairo/files/patch-cairo_pycairo-font.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/graphics/py-cairo/files/patch-cairo_pycairo-font.c b/graphics/py-cairo/files/patch-cairo_pycairo-font.c
index e4e921e5b..6fc527244 100644
--- a/graphics/py-cairo/files/patch-cairo_pycairo-font.c
+++ b/graphics/py-cairo/files/patch-cairo_pycairo-font.c
@@ -17,3 +17,15 @@
if (o) {
cairo_scaled_font_t *scaled_font = cairo_scaled_font_create
(ff->font_face, &mx1->matrix, &mx2->matrix);
+@@ -211,8 +210,9 @@
+ scaled_font_extents (PycairoScaledFont *o)
+ {
+ cairo_font_extents_t e;
+- cairo_status_t status = cairo_scaled_font_extents (o->scaled_font, &e);
+- if (Pycairo_Check_Status (status))
++
++ cairo_scaled_font_extents (o->scaled_font, &e);
++ if (Pycairo_Check_Status (cairo_scaled_font_status(o->scaled_font)))
+ return NULL;
+ return Py_BuildValue ("(ddddd)", e.ascent, e.descent, e.height,
+ e.max_x_advance, e.max_y_advance);