Commit 09feefee1663ffc3395802b730c17912aa39a8f8

David Turner 2001-12-11T13:49:55

* src/base/fttrigon.c (FT_Cos): fixed a small bug that caused slightly improper results for FT_Cos and FT_Sin (example: FT_Sin(0) == -1 !!)

diff --git a/ChangeLog b/ChangeLog
index b2844cb..5b3e9c4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -12,6 +12,9 @@
         * INSTALL: updated the instructions to build shared libraries with
         Jam.. they were simply erroneous..
 
+        * src/base/fttrigon.c (FT_Cos): fixed a small bug that caused slightly
+        improper results for FT_Cos and FT_Sin (example: FT_Sin(0) == -1 !!)
+
 
 2001-12-11  Detlef Würkner >TetiSoft@apg.lahn.de>
 
diff --git a/src/base/fttrigon.c b/src/base/fttrigon.c
index cd19803..4176d0c 100644
--- a/src/base/fttrigon.c
+++ b/src/base/fttrigon.c
@@ -292,7 +292,7 @@
     v.y = 0;
     ft_trig_pseudo_rotate( &v, angle );
 
-    return v.x >> 12;
+    return v.x/(1 << 12);
   }