Commit 57f375b6 authored by Caleb Michael Moore's avatar Caleb Michael Moore

put images the right spot

parent 47570452
......@@ -2,6 +2,7 @@
* rsvg-cairo-draw.c: made opacity work
* test-display.c: changed set_default_dpi_x_y to set_default_dpi
* rsvg-cairo-draw.c: put image in the right spot
2005-10-06 Dom Lachowicz <cinamod@hotmail.com>
......
......@@ -363,11 +363,16 @@ void rsvg_cairo_render_image (RsvgDrawingCtx *ctx, const GdkPixbuf * pixbuf,
static const cairo_user_data_key_t key;
int j;
if (pixbuf == NULL)
return;
rsvg_cairo_push_discrete_layer (ctx);
cairo_save (render->cr);
_set_rsvg_affine (render->cr, state->affine);
cairo_scale (render->cr, w / width, h / height);
pixbuf_x *= width / w;
pixbuf_y *= height / h;
if (n_channels == 3)
format = CAIRO_FORMAT_RGB24;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment