[cairo-commit] libsvg-cairo/src svg_cairo.c,1.30,1.31

Carl Worth commit at pdx.freedesktop.org
Sat Apr 2 06:02:37 PST 2005


Committed by: cworth

Update of /cvs/cairo/libsvg-cairo/src
In directory gabe:/tmp/cvs-serv3880/src

Modified Files:
	svg_cairo.c 
Log Message:

        * src/svg_cairo.c: (_svg_cairo_render_image): Use cairo_move_to
        rather than cairo_translate to position the image, (not that it
        should make any difference, but this will exercise a code path
        that had been buggy).


Index: svg_cairo.c
===================================================================
RCS file: /cvs/cairo/libsvg-cairo/src/svg_cairo.c,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- svg_cairo.c	14 Jan 2005 21:36:17 -0000	1.30
+++ svg_cairo.c	2 Apr 2005 14:02:34 -0000	1.31
@@ -1211,9 +1211,9 @@
     _svg_cairo_length_to_pixel (svg_cairo, width_len, &width);
     _svg_cairo_length_to_pixel (svg_cairo, height_len, &height);
 
-    surface = cairo_surface_create_for_image (data, CAIRO_FORMAT_ARGB32,
+    surface = cairo_surface_create_for_image ((char *)data, CAIRO_FORMAT_ARGB32,
 					      data_width, data_height, data_width *4);
-    cairo_translate (svg_cairo->cr, x, y);
+    cairo_move_to (svg_cairo->cr, x, y);
     cairo_scale (svg_cairo->cr, width / data_width, height / data_height);
     cairo_set_alpha (svg_cairo->cr, svg_cairo->state->opacity);
 




More information about the cairo-commit mailing list