* 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 !!)
This commit is contained in:
David Turner 2001-12-11 13:49:55 +00:00
parent 36ba9d87a5
commit c6f84561f5
2 changed files with 4 additions and 1 deletions

View File

@ -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>

View File

@ -292,7 +292,7 @@
v.y = 0;
ft_trig_pseudo_rotate( &v, angle );
return v.x >> 12;
return v.x/(1 << 12);
}