[cairo-bugs] [Bug 103614] painting an xlib surface with source set to another surface created with cairo_image_surface_create_from_png fails if xlib surface is set to the exact size of the png image.

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Nov 15 17:38:30 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=103614

--- Comment #3 from Uli Schlachter <psychon at znc.in> ---
I took a quick look and something in cairo-tor-scan-converter.c seems to
mishandle your line. I don't know the details, sorry.

This polygon is its input (I am rendering your line to a 20x20 image surface):

polygon: extents=(0.000000, 0.000000), (20.000000, 20.000000)
  [0] = [(0.000000, 0.000000), (0.000000, 20.000000)], top=0.000000,
bottom=1.414062, dir=-1
  [1] = [(-200000.707031, -199999.292969), (199999.292969, 200000.707031)],
top=1.414062, bottom=20.000000, dir=-1
  [2] = [(20.000000, 0.000000), (20.000000, 20.000000)], top=18.585938,
bottom=20.000000, dir=1
  [3] = [(-199999.292969, -200000.707031), (200000.707031, 199999.292969)],
top=0.000000, bottom=18.585938, dir=1

I am not quite sure, but this seems more or less okay. The scan converter then
ends up with 0 spans most of the time, but just some spans on the last two
lines.

So... no idea.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo-bugs/attachments/20171115/1bbbb6d0/attachment.html>


More information about the cairo-bugs mailing list