Commit d727dead authored by Dom Lachowicz's avatar Dom Lachowicz

Bug #323114; work-around for a nasty cairo bug wrt pixel dirt

* rsvg-cairo-draw.c: Bug #323114; work-around for a nasty cairo bug wrt pixel dirt
parent 5ec04665
......@@ -5,6 +5,8 @@
* rsvg-base.c, rsvg-convert.c, rsvg-defs.c, rsvg-file-util.c, rsvg.c, test-display.c: Ditto
* test-display.c: Don't show zoom buttons in the Mozilla plugin
* rsvg-cairo-draw.c: Bug #330022; code computes wrong pixel values with color = 0xFF and alpha - 0xff. From Emmanuel Pacaud.
* rsvg-cairo-draw.c: Bug #323114; work-around for a nasty cairo bug wrt
pixel dirt
2006-02-05 Caleb Moore <c.moore@student.unsw.edu.au>
......
......@@ -65,6 +65,12 @@ rsvg_cairo_render_new(cairo_t * cr, double width, double height)
cairo_render->cr_stack = NULL;
cairo_render->bb_stack = NULL;
cairo_render->pixbuf_stack = NULL;
cairo_save(cr);
cairo_set_operator(cr, CAIRO_OPERATOR_CLEAR);
cairo_paint(cr);
cairo_restore(cr);
return cairo_render;
}
......
......@@ -85,7 +85,7 @@ rsvg_handle_get_pixbuf_sub (RsvgHandle *handle, const char * id)
rowstride = dimensions.width * 4;
pixels = g_new0(guint8, dimensions.width * dimensions.height * 4);
pixels = g_new(guint8, dimensions.width * dimensions.height * 4);
surface = cairo_image_surface_create_for_data (pixels,
CAIRO_FORMAT_ARGB32,
......
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