Commit 0515c09637c979c11a74df1cd78412c5c3e3fdd6

David Turner 2001-12-21T04:16:42

* 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 !!

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;