Mercurial > pygame
diff src/transform.c @ 1149:bc8fa65d78df
Added a fix for rotate on multiples of 90.0000001-90.99999 degrees.
Thanks Charlie Nolan, and Marcus!
| author | Rene Dudfield <renesd@gmail.com> |
|---|---|
| date | Wed, 25 Jun 2008 10:42:00 +0000 |
| parents | fa8a25ebb16a |
| children | 19b5c3403e9e |
line wrap: on
line diff
--- a/src/transform.c Wed Jun 25 04:16:40 2008 +0000 +++ b/src/transform.c Wed Jun 25 10:42:00 2008 +0000 @@ -571,8 +571,9 @@ return RAISE (PyExc_ValueError, "unsupport Surface bit depth for transform"); - if (!(((int) angle) % 90)) - { + + + if ( !( fmodf(angle, 90.0f) ) ) { PySurface_Lock (surfobj); Py_BEGIN_ALLOW_THREADS;
