|
|
|
@ -397,9 +397,10 @@ |
|
|
|
|
|
|
|
|
|
for ( j = 0; j < segment->pairCount; j++ ) |
|
|
|
|
{ |
|
|
|
|
/* convert to Fixed */ |
|
|
|
|
segment->correspondence[j].fromCoord = FT_GET_SHORT() * 4; |
|
|
|
|
segment->correspondence[j].toCoord = FT_GET_SHORT() * 4; |
|
|
|
|
segment->correspondence[j].fromCoord = |
|
|
|
|
FT_fdot14ToFixed( FT_GET_SHORT() ); |
|
|
|
|
segment->correspondence[j].toCoord = |
|
|
|
|
FT_fdot14ToFixed( FT_GET_SHORT() ); |
|
|
|
|
|
|
|
|
|
FT_TRACE5(( " mapping %.5f to %.5f\n", |
|
|
|
|
segment->correspondence[j].fromCoord / 65536.0, |
|
|
|
@ -1616,7 +1617,7 @@ |
|
|
|
|
for ( j = 0; j < (FT_UInt)gvar_head.axisCount; j++ ) |
|
|
|
|
{ |
|
|
|
|
blend->tuplecoords[i * gvar_head.axisCount + j] = |
|
|
|
|
FT_GET_SHORT() * 4; /* convert to FT_Fixed */ |
|
|
|
|
FT_fdot14ToFixed( FT_GET_SHORT() ); |
|
|
|
|
FT_TRACE5(( "%.5f ", |
|
|
|
|
blend->tuplecoords[i * gvar_head.axisCount + j] / 65536.0 )); |
|
|
|
|
} |
|
|
|
@ -3266,8 +3267,7 @@ |
|
|
|
|
if ( tupleIndex & GX_TI_EMBEDDED_TUPLE_COORD ) |
|
|
|
|
{ |
|
|
|
|
for ( j = 0; j < blend->num_axis; j++ ) |
|
|
|
|
tuple_coords[j] = FT_GET_SHORT() * 4; /* convert from */ |
|
|
|
|
/* short frac to fixed */ |
|
|
|
|
tuple_coords[j] = FT_fdot14ToFixed( FT_GET_SHORT() ); |
|
|
|
|
} |
|
|
|
|
else if ( ( tupleIndex & GX_TI_TUPLE_INDEX_MASK ) >= blend->tuplecount ) |
|
|
|
|
{ |
|
|
|
@ -3298,9 +3298,9 @@ |
|
|
|
|
if ( tupleIndex & GX_TI_INTERMEDIATE_TUPLE ) |
|
|
|
|
{ |
|
|
|
|
for ( j = 0; j < blend->num_axis; j++ ) |
|
|
|
|
im_start_coords[j] = FT_GET_SHORT() * 4; |
|
|
|
|
im_start_coords[j] = FT_fdot14ToFixed( FT_GET_SHORT() ); |
|
|
|
|
for ( j = 0; j < blend->num_axis; j++ ) |
|
|
|
|
im_end_coords[j] = FT_GET_SHORT() * 4; |
|
|
|
|
im_end_coords[j] = FT_fdot14ToFixed( FT_GET_SHORT() ); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
apply = ft_var_apply_tuple( blend, |
|
|
|
@ -3812,8 +3812,7 @@ |
|
|
|
|
if ( tupleIndex & GX_TI_EMBEDDED_TUPLE_COORD ) |
|
|
|
|
{ |
|
|
|
|
for ( j = 0; j < blend->num_axis; j++ ) |
|
|
|
|
tuple_coords[j] = FT_GET_SHORT() * 4; /* convert from */ |
|
|
|
|
/* short frac to fixed */ |
|
|
|
|
tuple_coords[j] = FT_fdot14ToFixed( FT_GET_SHORT() ); |
|
|
|
|
} |
|
|
|
|
else if ( ( tupleIndex & GX_TI_TUPLE_INDEX_MASK ) >= blend->tuplecount ) |
|
|
|
|
{ |
|
|
|
@ -3833,9 +3832,9 @@ |
|
|
|
|
if ( tupleIndex & GX_TI_INTERMEDIATE_TUPLE ) |
|
|
|
|
{ |
|
|
|
|
for ( j = 0; j < blend->num_axis; j++ ) |
|
|
|
|
im_start_coords[j] = FT_GET_SHORT() * 4; |
|
|
|
|
im_start_coords[j] = FT_fdot14ToFixed( FT_GET_SHORT() ); |
|
|
|
|
for ( j = 0; j < blend->num_axis; j++ ) |
|
|
|
|
im_end_coords[j] = FT_GET_SHORT() * 4; |
|
|
|
|
im_end_coords[j] = FT_fdot14ToFixed( FT_GET_SHORT() ); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
apply = ft_var_apply_tuple( blend, |
|
|
|
|