154 |
if ( runcnt & GX_PT_POINTS_ARE_WORDS ) |
if ( runcnt & GX_PT_POINTS_ARE_WORDS ) |
155 |
{ |
{ |
156 |
runcnt = runcnt & GX_PT_POINT_RUN_COUNT_MASK; |
runcnt = runcnt & GX_PT_POINT_RUN_COUNT_MASK; |
157 |
points[i++] = first = FT_GET_USHORT(); |
first = points[i++] = FT_GET_USHORT(); |
158 |
|
|
159 |
/* first point not included in runcount */ |
/* first point not included in runcount */ |
160 |
for ( j = 0; j < runcnt; ++j ) |
for ( j = 0; j < runcnt; ++j ) |
161 |
points[i++] = ( first += FT_GET_USHORT() ); |
points[i++] = (FT_UShort)( first += FT_GET_USHORT() ); |
162 |
} |
} |
163 |
else |
else |
164 |
{ |
{ |
165 |
points[i++] = first = FT_GET_BYTE(); |
first = points[i++] = FT_GET_BYTE(); |
166 |
|
|
167 |
for ( j = 0; j < runcnt; ++j ) |
for ( j = 0; j < runcnt; ++j ) |
168 |
points[i++] = ( first += FT_GET_BYTE() ); |
points[i++] = (FT_UShort)( first += FT_GET_BYTE() ); |
169 |
} |
} |
170 |
} |
} |
171 |
|
|
1209 |
} |
} |
1210 |
|
|
1211 |
apply = ft_var_apply_tuple( blend, |
apply = ft_var_apply_tuple( blend, |
1212 |
tupleIndex, |
(FT_UShort) tupleIndex, |
1213 |
tuple_coords, |
tuple_coords, |
1214 |
im_start_coords, |
im_start_coords, |
1215 |
im_end_coords ); |
im_end_coords ); |
1238 |
{ |
{ |
1239 |
/* this means that there are deltas for every entry in cvt */ |
/* this means that there are deltas for every entry in cvt */ |
1240 |
for ( j = 0; j < face->cvt_size; ++j ) |
for ( j = 0; j < face->cvt_size; ++j ) |
1241 |
face->cvt[j] += (FT_Short)FT_MulFix( deltas[j], |
face->cvt[j] = (FT_Short)( face->cvt[j] + FT_MulFix( deltas[j], |
1242 |
apply ); |
apply ) ); |
1243 |
} |
} |
1244 |
|
|
1245 |
else |
else |
1246 |
{ |
{ |
1247 |
for ( j = 0; j < point_count; ++j ) |
for ( j = 0; j < point_count; ++j ) |
1248 |
face->cvt[localpoints[j]] += (FT_Short)FT_MulFix( deltas[j], |
{ |
1249 |
apply ); |
int pindex = localpoints[j]; |
1250 |
|
|
1251 |
|
face->cvt[pindex] = (FT_Short)( face->cvt[pindex] + |
1252 |
|
FT_MulFix( deltas[j], apply ) ); |
1253 |
|
} |
1254 |
} |
} |
1255 |
|
|
1256 |
if ( localpoints != ALL_POINTS ) |
if ( localpoints != ALL_POINTS ) |
1318 |
FT_Fixed* im_end_coords = NULL; |
FT_Fixed* im_end_coords = NULL; |
1319 |
FT_UInt point_count, spoint_count = 0; |
FT_UInt point_count, spoint_count = 0; |
1320 |
FT_UShort* sharedpoints = NULL; |
FT_UShort* sharedpoints = NULL; |
1321 |
FT_UShort* localpoints; |
FT_UShort* localpoints = NULL; |
1322 |
FT_UShort* points; |
FT_UShort* points; |
1323 |
FT_Short *deltas_x, *deltas_y; |
FT_Short *deltas_x, *deltas_y; |
1324 |
|
|
1404 |
} |
} |
1405 |
|
|
1406 |
apply = ft_var_apply_tuple( blend, |
apply = ft_var_apply_tuple( blend, |
1407 |
tupleIndex, |
(FT_UShort) tupleIndex, |
1408 |
tuple_coords, |
tuple_coords, |
1409 |
im_start_coords, |
im_start_coords, |
1410 |
im_end_coords ); |
im_end_coords ); |