diff options
Diffstat (limited to 'src/cairo-xml-surface.c')
-rw-r--r-- | src/cairo-xml-surface.c | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/src/cairo-xml-surface.c b/src/cairo-xml-surface.c index b323d03..83d4f91 100644 --- a/src/cairo-xml-surface.c +++ b/src/cairo-xml-surface.c @@ -421,7 +421,6 @@ _cairo_xml_emit_path (cairo_xml_t *xml, _cairo_xml_printf_start (xml, "<path>"); status = _cairo_path_fixed_interpret (path, - CAIRO_DIRECTION_FORWARD, _cairo_xml_move_to, _cairo_xml_line_to, _cairo_xml_curve_to, @@ -555,10 +554,8 @@ _cairo_xml_emit_linear (cairo_xml_t *xml, { _cairo_xml_printf (xml, "<linear x1='%f' y1='%f' x2='%f' y2='%f'>", - _cairo_fixed_to_double (linear->p1.x), - _cairo_fixed_to_double (linear->p1.y), - _cairo_fixed_to_double (linear->p2.x), - _cairo_fixed_to_double (linear->p2.y)); + linear->pd1.x, linear->pd1.y, + linear->pd2.x, linear->pd2.y); _cairo_xml_indent (xml, 2); _cairo_xml_emit_gradient (xml, &linear->base); _cairo_xml_indent (xml, -2); @@ -572,12 +569,8 @@ _cairo_xml_emit_radial (cairo_xml_t *xml, { _cairo_xml_printf (xml, "<radial x1='%f' y1='%f' r1='%f' x2='%f' y2='%f' r2='%f'>", - _cairo_fixed_to_double (radial->c1.x), - _cairo_fixed_to_double (radial->c1.y), - _cairo_fixed_to_double (radial->r1), - _cairo_fixed_to_double (radial->c2.x), - _cairo_fixed_to_double (radial->c2.y), - _cairo_fixed_to_double (radial->r2)); + radial->cd1.center.x, radial->cd1.center.y, radial->cd1.radius, + radial->cd2.center.x, radial->cd2.center.y, radial->cd2.radius); _cairo_xml_indent (xml, 2); _cairo_xml_emit_gradient (xml, &radial->base); _cairo_xml_indent (xml, -2); @@ -872,7 +865,7 @@ _cairo_xml_emit_type42_font (cairo_xml_t *xml, if (unlikely (buf == NULL)) return _cairo_error (CAIRO_STATUS_NO_MEMORY); - status = backend->load_truetype_table (scaled_font, 0, 0, buf, NULL); + status = backend->load_truetype_table (scaled_font, 0, 0, buf, &size); if (unlikely (status)) { free (buf); return status; |