Created attachment 75670 [details]
codes to reproduce problem.
Please find attached soruce code to produce problem.
Actually Cairo works strange with complex clip.
I have 2 clips which have different AA option.
And When I call cairo_paint() I got strange result.
If set both AA option makes same, problem is gone.
I also attached the png file (strange result).
Please check it!
Thanks a lot.
Could you please also tell us why the result is strange and what you would expect instead?
Created attachment 76389 [details]
What is wrong and What I expected...
I attached new 5 png files.
1-clip.png is first clip in my sample.
2-clip.png is second clip in my sample.
intersect-clip.png is intersection of first & second clip.
What_I_expect.png is What I expected result of intersected clip
- Actually mask of Cairo.
wrong_result.png is current result of intersected clip(mask) with Cairo.
- You can find strange thin & transparent line below Trapezoida.
Created attachment 76401 [details] [review]
Possible fix for this problem.
Sorry, I didn't notice that line before.
Via some printf-debugging I came up with the attached patch. It seems to fix this issue, but I am not really sure about this. Also, someone should make sure that a suitable test gets added to the test suite, I guess.
Thank you for your quick response.
I will test it.
Thans a lot. :)
Fixed with commit 2170bdbb12f38e372ea2ce1c6492c60cb35f22e4.