[base] Fix 11-year old bug.

Since the initial commit (ebe85f59) the value of FT_TRIG_SCALE has
always been slightly less than the correct value, which has been
given in the comment as a hexadecimal. As a result, vector lengths
were underestimated and rotated vectors were shortened.
This commit is contained in:
Alexei Podtelezhnikov 2012-12-15 23:33:55 -05:00
parent 7f2e4f4f55
commit 8ac5c5c8a5
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,14 @@
2012-12-15 Alexei Podtelezhnikov <apodtele@gmail.com>
[base] Fix 11-year old bug.
Since the initial commit (ebe85f59) the value of FT_TRIG_SCALE has
always been slightly less than the correct value, which has been
given in the comment as a hexadecimal. As a result, vector lengths
were underestimated and rotated vectors were shortened.
* src/base/fttrigon.c (FT_TRIG_SCALE): Fix macro value.
2012-12-15 Werner Lemberg <wl@gnu.org>
[bdf] Fix Savannah bug #37907.

View File

@ -41,7 +41,7 @@
};
/* the Cordic shrink factor, multiplied by 2^32 */
#define FT_TRIG_SCALE 1166391785UL /* 0x4585BA38UL */
#define FT_TRIG_SCALE 1166391864UL /* 0x4585BA38UL */
#ifdef FT_LONG64