[cairo] cairo-1.10 regression?

Julien Bramary julien_bramary at msn.com
Fri Nov 26 07:11:52 PST 2010

Hey guys,
I tried 1.10 today and found some odd glitches in my application. I narrowed it down to a vertical and horizontal line crossing showing strange artefacts.
The concerned lines either have a non-integer width or non-integer starting and end points.
Here is the code snippet I used to test this (the code before that paints the background to white):
layer_0 = cairo_image_surface_create (CAIRO_FORMAT_ARGB32, 600, 600);cairo_t *cr = cairo_create (layer_0);
cairo_set_source_rgb (cr, 1, 1, 1);cairo_paint (cr);
double x = 50.323;double y = 50.768;
cairo_set_operator (cr, CAIRO_OPERATOR_OVER);cairo_set_source_rgb (cr, 0.1f, 0.1f, 0.1f);cairo_set_line_width (cr, 6);
cairo_move_to (cr, x, 0);cairo_line_to (cr, x, 600);cairo_move_to (cr, 0, y);cairo_line_to (cr, 600, y);cairo_stroke (cr);
The screenshots attached clearly show that 1.8.10 is doing the right thing with the semi-transparent bits whereas 1.10.0 is not.Anyone seen this with 1.10? I couldn't find related bugs in the tracker. I just tried with latest Git version and it still happens.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20101126/8556d4f8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dodgy_lines_crossing1.10.png
Type: image/png
Size: 910 bytes
Desc: not available
URL: <http://lists.cairographics.org/archives/cairo/attachments/20101126/8556d4f8/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: good_lines_crossing1.8.png
Type: image/png
Size: 812 bytes
Desc: not available
URL: <http://lists.cairographics.org/archives/cairo/attachments/20101126/8556d4f8/attachment-0001.png>

More information about the cairo mailing list