freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] ewaldhew-wip 6531bbb 1/7: [255] change for type 1 mode


From: Hew Yih Shiuan Ewald
Subject: [freetype2] ewaldhew-wip 6531bbb 1/7: [255] change for type 1 mode
Date: Wed, 19 Jul 2017 05:20:57 -0400 (EDT)

branch: ewaldhew-wip
commit 6531bbb4c068a9b24689b67c9ef810b48ee51eeb
Author: Ewald Hew <address@hidden>
Commit: Ewald Hew <address@hidden>

    [255] change for type 1 mode
    
    Used to push as Fixed if absolute value <32000 and not following
    large_int, but this causes problems with subroutines, which can take
    values >1131, and needs integer arg
    
    Now only push as Fixed if in CFF mode
    
    Changed trace messages to be distinct
---
 src/psaux/psintrp.c | 14 +++-----------
 1 file changed, 3 insertions(+), 11 deletions(-)

diff --git a/src/psaux/psintrp.c b/src/psaux/psintrp.c
index 4bfa4e3..bc48fc8 100644
--- a/src/psaux/psintrp.c
+++ b/src/psaux/psintrp.c
@@ -2890,22 +2890,14 @@
                 else
                   large_int = TRUE;
               }
-              else
-              {
-                if ( !large_int )
-                  v = (CF2_Fixed)( (FT_UInt32)v << 16 );
-              }
-            }
-
-            if ( large_int )
-            {
-              FT_TRACE4(( " %.5f", v ));
+            
+              FT_TRACE4(( " %d", v ));
 
               cf2_stack_pushInt( opStack, (CF2_Int)v );
             }
             else
             {
-              FT_TRACE4(( " %.5f", v / 65536.0 ));
+              FT_TRACE4(( " %.5fF", v / 65536.0 ));
 
               cf2_stack_pushFixed( opStack, v );
             }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]