<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV id=yiv118685691>
<DIV>Hi Joonas,</DIV>
<DIV> </DIV>
<DIV>Today I tested 1.8.8 and it worked find. After I tested 1.6.4 and 1.8.6 of cairo in our project I found that it wasn't a cairo bug. It should be caused by some cairo changes that were made by ourself. Sorry for this bug report. And thank you very much for your help~~~</DIV>
<DIV> </DIV>
<DIV>Nick<BR><BR>--- On <B>Thu, 6/25/09, M Joonas Pihlaja <I><jpihlaja@cc.helsinki.fi></I></B> wrote:<BR></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid"><BR>From: M Joonas Pihlaja <jpihlaja@cc.helsinki.fi><BR>Subject: Re: [cairo] cairo dash line bug? an unexpected polygon was rendered when drawing the dash line rectangle<BR>To: "Lonely Hiker" <lonely_hiker09@yahoo.com><BR>Cc: cairo@cairographics.org<BR>Date: Thursday, June 25, 2009, 12:35 AM<BR><BR>
<DIV class=plainMail><BR>Hi,<BR><BR>On Wed, 24 Jun 2009, Lonely Hiker wrote:<BR><BR>> Hi All,<BR>> <BR>> I am new to Cairo and today i encounter a dash line problem on Win32.<BR>> <BR>> I had some testing code for it:<BR>> <BR>[snip TestBug() function]<BR><BR>I ran this function on a cairo_image_surface() of size 1300x600 using <BR>cairo-1.6.4 and cairo-1.8.8 on Linux but couldn't replicate the bug <BR>Both times the result was a nice green dashed rectangle. What version <BR>of cairo are you using? If your cairo is older than 1.8.8 would you <BR>mind trying with the latest stable release?<BR><BR>> I ran the test application and tried to resize the window slowly so <BR>> that the retangle can be cut-off. During the resizing, at some <BR>> position the rendering showed this bug: it filled a huge polygon <BR>> with the color that was set for the stroke and covered part
of the <BR>> rectangle. You can see this in the attachment.<BR><BR>Yikes. Looks bad. :|<BR><BR>> I guess this is a cairo dash line bug? Any idea is appreciated.<BR>> <BR>> Here is the test application:<BR><BR>[snip windows app]<BR><BR>Unfortunately I can't run this app as I'm not near a windows box. I <BR>scanned through the win32 surface implementation and it looks like it <BR>relies on the generic cairo stroker, so the result ought to be <BR>identical using an image surface and a win32 surface -- in theory.<BR>Could you check if the bug appears using the following program?<BR><BR>int<BR>main()<BR>{<BR> cairo_surface_t *im = cairo_image_surface_create(<BR> CAIRO_FORMAT_ARGB32,<BR> 1300, 600);<BR> cairo_t *cr = cairo_create(im);<BR><BR>
cairo_set_source_rgb(cr, 1,1,1);<BR> cairo_paint(cr);<BR><BR> TestBug(cr);<BR><BR> cairo_surface_write_to_png(im, "out-dash-bug.png");<BR> cairo_surface_destroy(im);<BR> cairo_destroy(cr);<BR> return 0;<BR>}<BR><BR>Cheers,<BR><BR>Joonas<BR></DIV></BLOCKQUOTE></DIV></td></tr></table><br>