* src/pshinter/pshglob.c (psh_globals_new): replaced a floating point

constant with a fixed-float equivalent. For some reason, some compilers
        aren't capable of directly computing a floating pointer constant casted
        to FT_Fixed, and will link a math library instead !!
This commit is contained in:
David Turner 2001-12-21 04:16:42 +00:00
parent aa78d59d23
commit 04658fcd81
3 changed files with 17 additions and 7 deletions

View File

@ -1,3 +1,11 @@
2001-12-21 David Turner <david@freetype.org>
* src/pshinter/pshglob.c (psh_globals_new): replaced a floating point
constant with a fixed-float equivalent. For some reason, some compilers
aren't capable of directly computing a floating pointer constant casted
to FT_Fixed, and will link a math library instead !!
2001-12-20 Werner Lemberg <wl@gnu.org>
* src/cache/ftccache.c (ftc_node_destroy, ftc_cache_lookup): Fix

View File

@ -249,8 +249,8 @@ FT_BEGIN_HEADER
/* */
/* Don't define any of these macros to compile in `release' mode! */
/* */
#undef FT_DEBUG_LEVEL_ERROR
#undef FT_DEBUG_LEVEL_TRACE
#define FT_DEBUG_LEVEL_ERROR
#define FT_DEBUG_LEVEL_TRACE
/*************************************************************************/
@ -265,7 +265,7 @@ FT_BEGIN_HEADER
/* Note that the memory debugger is only activated at runtime when */
/* when the _environment_ variable "FT_DEBUG_MEMORY" is also defined! */
/* */
#undef FT_DEBUG_MEMORY
#define FT_DEBUG_MEMORY
/*************************************************************************/

View File

@ -643,11 +643,13 @@
priv->family_blues, priv->num_family_other_blues,
priv->family_other_blues, priv->blue_fuzz, 1 );
globals->blues.blue_scale = priv->blue_scale ? priv->blue_scale
: ( 0.039625 * 0x400000L );
globals->blues.blue_scale = priv->blue_scale
? priv->blue_scale
: 0x28937L; /* ( 0.039625 * 0x400000L ) !! */
globals->blues.blue_shift = priv->blue_shift ? priv->blue_shift
: 7;
globals->blues.blue_shift = priv->blue_shift
? priv->blue_shift
: 7;
globals->dimension[0].scale_mult = 0;
globals->dimension[0].scale_delta = 0;