From bbc6126a7bb583c0f20207912faf15fbc4beacf2 Mon Sep 17 00:00:00 2001 From: marcus Date: Sat, 30 Jul 2005 23:59:53 +0000 Subject: Fix the build with cairo-0.6.0. Submitted by: Yasuda Keisuke git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@4364 df743ca5-7f9a-e211-a948-0013205c9059 --- graphics/py-cairo/files/patch-cairo_pycairo-font.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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); -- cgit v1.2.3