https://bugs.winehq.org/show_bug.cgi?id=52492
--- Comment #6 from David Kahurani k.kahurani@gmail.com --- (In reply to Fabian Maurer from comment #5)
Created attachment 74614 [details] Make flatten_bezier iterative
Added patch to make flatten_bezier iterative. Should be correct, but no guarantees I didn't break something in the process of conversion.
Since the bug doesn't appear for me, can you try if this helps (and is still correct)? Probably pretty bad for performance, since stack is so much faster, but since stack seems limited...
It looks like this patch makes my PC crash.
I don't know how correct it is but, personally, to re-write this function, I'd try to construct it into a quadratic loop.
for(initial;constraint;advance){ for (initial;constraint;advance) {
} }
Time complexity would probably be equal to that of the original recursive approach.
My 2 cents...