freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype][master] [ttgxvar] Replace tabs with spaces


From: Alexei Podtelezhnikov (@apodtele)
Subject: [Git][freetype/freetype][master] [ttgxvar] Replace tabs with spaces
Date: Thu, 30 May 2024 02:47:23 +0000

Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType

Commits:

  • d41a855a
    by Ben Wagner at 2024-05-29T17:01:29-04:00
    [ttgxvar] Replace tabs with spaces
    
    Also clarify comments around conversion and clamping.
    
    * src/truetype/ttgxvar.c (ft_var_to_normalized): doit
    

1 changed file:

Changes:

  • src/truetype/ttgxvar.c
    ... ... @@ -2129,12 +2129,12 @@
    2129 2129
                                              outerIndex,
    
    2130 2130
                                              innerIndex );
    
    2131 2131
     
    
    2132
    -          /* Convert to 16.16 format before adding. */
    
    2133
    -	  v += MUL_INT( delta, 4 );
    
    2132
    +          /* Convert delta in F2DOT14 to 16.16 before adding. */
    
    2133
    +          v += MUL_INT( delta, 4 );
    
    2134 2134
     
    
    2135
    -	  /* Clamp value range. */
    
    2136
    -	  v = v >=  0x10000L ?  0x10000 : v;
    
    2137
    -	  v = v <= -0x10000L ? -0x10000 : v;
    
    2135
    +          /* Clamp value range [-1, 1]. */
    
    2136
    +          v = v >=  0x10000L ?  0x10000 : v;
    
    2137
    +          v = v <= -0x10000L ? -0x10000 : v;
    
    2138 2138
     
    
    2139 2139
               new_normalized[i] = v;
    
    2140 2140
             }
    


  • reply via email to

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