https://bugs.freedesktop.org/show_bug.cgi?id=27901
--- Comment #7 from Conn Clark conn.o.clark@gmail.com 2010-05-20 12:46:03 PDT --- Alain,
The patch I just posted fixes the problem on my machine completely. The problem with the previous version of the patch (other than the source mistake you found ;) )has something to do me coding in the 0.5 special constant. Replacing it with a literal 0.5 constant works.
I also extended the definition of PI 3 places to avoid drift of the values when it gets an input significantly greater or less than PI and -PI.
Let me know how it works for you.
Thanks.
Conn