* 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 !!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
diff --git a/ChangeLog b/ChangeLog
index f469e94..bf91545 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/include/freetype/config/ftoption.h b/include/freetype/config/ftoption.h
index 0a930f2..baf2fe5 100644
--- a/include/freetype/config/ftoption.h
+++ b/include/freetype/config/ftoption.h
@@ -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
/*************************************************************************/
diff --git a/src/pshinter/pshglob.c b/src/pshinter/pshglob.c
index 0cebb45..c063073 100644
--- a/src/pshinter/pshglob.c
+++ b/src/pshinter/pshglob.c
@@ -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;