mirror of
https://gitlab.freedesktop.org/freetype/freetype.git
synced 2026-05-07 09:58:02 +02:00
* src/truetype/ttgxvar.c (ft_var_apply_tuple): Micro-optimize.
This commit is contained in:
parent
14399c73c4
commit
e6e9110a8f
1 changed files with 11 additions and 3 deletions
|
|
@ -1896,16 +1896,24 @@
|
|||
|
||||
for ( i = 0; i < blend->num_axis; i++ )
|
||||
{
|
||||
FT_Fixed ncv = blend->normalizedcoords[i];
|
||||
FT_Fixed ncv;
|
||||
|
||||
|
||||
FT_TRACE6(( " axis %d coordinate %.5f:\n", i, (double)ncv / 65536 ));
|
||||
|
||||
/* It's not clear why (for intermediate tuples) we don't need */
|
||||
/* to check against start/end -- the documentation says we don't. */
|
||||
/* Similarly, it's unclear why we don't need to scale along the */
|
||||
/* axis. */
|
||||
|
||||
if ( tuple_coords[i] == 0 )
|
||||
{
|
||||
FT_TRACE6(( " tuple coordinate is zero, ignore\n" ));
|
||||
continue;
|
||||
}
|
||||
|
||||
ncv = blend->normalizedcoords[i];
|
||||
|
||||
FT_TRACE6(( " axis %d coordinate %.5f:\n", i, (double)ncv / 65536 ));
|
||||
|
||||
if ( tuple_coords[i] == ncv )
|
||||
{
|
||||
FT_TRACE6(( " tuple coordinate %.5f fits perfectly\n",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue