[cairo] drawing inconsistency

Adi Oanca adioanca at gmail.com
Mon Jan 21 12:52:10 PST 2008

Hi Bertram,

	First, thank you for helping me with this issue.

Bertram Felgenhauer wrote:
>>    AFAIR it gives the same result, only that the line is thicker at
>> the left/bottom side.
> When I run the program with line width 2, I see a rectangle with a
> thicker, white border. When the rectangle is filled later (in red),
> the fill paints over the inner half of said border, and only a 1 pixel
> border remains.

	Yup. I can confirm. Now that I am home and the code/SDL_window is in 
front of my eyes, yes, I get the same result as you.

>>> I can't reproduce that. Did you add the cairo_set_line_width(cr, 1)
>>> line after testing that, perhaps?

	Yes. That's exactly what I have done. :) In the morning I didn't have 
the code in front. Now I do, and it happened just as you described. :)

>> So, this is why I'm puzzled. If I provide a pre-allocated drawing
>> buffer, Cairo won't draw properly, but if I tell it to allocate the
>> drawing buffer, the result is just fine.
> You are probably hitting some bug (although I have no clue where that
> bug could be). But in any case, the behaviour in case 1) is the correct
> one, even if it is not what you expected.

	Mystery solved. :)

Thanks for your time,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: adioanca.vcf
Type: text/x-vcard
Size: 201 bytes
Desc: not available
Url : http://lists.cairographics.org/archives/cairo/attachments/20080121/6231bfd7/attachment-0001.vcf 

More information about the cairo mailing list