|
|
@ -45,8 +45,7 @@ struct blend_arg_t : number_t |
|
|
|
numValues = numValues_; |
|
|
|
numValues = numValues_; |
|
|
|
valueIndex = valueIndex_; |
|
|
|
valueIndex = valueIndex_; |
|
|
|
unsigned numBlends = blends_.length; |
|
|
|
unsigned numBlends = blends_.length; |
|
|
|
deltas.alloc (numBlends, true); /* Exact-size allocation. */ |
|
|
|
if (unlikely (!deltas.resize_exact (numBlends))) |
|
|
|
if (unlikely (!deltas.resize (numBlends))) |
|
|
|
|
|
|
|
return; |
|
|
|
return; |
|
|
|
for (unsigned int i = 0; i < numBlends; i++) |
|
|
|
for (unsigned int i = 0; i < numBlends; i++) |
|
|
|
deltas.arrayZ[i] = blends_.arrayZ[i]; |
|
|
|
deltas.arrayZ[i] = blends_.arrayZ[i]; |
|
|
@ -119,8 +118,7 @@ struct cff2_cs_interp_env_t : cs_interp_env_t<ELEM, CFF2Subrs> |
|
|
|
region_count = varStore->varStore.get_region_index_count (get_ivs ()); |
|
|
|
region_count = varStore->varStore.get_region_index_count (get_ivs ()); |
|
|
|
if (do_blend) |
|
|
|
if (do_blend) |
|
|
|
{ |
|
|
|
{ |
|
|
|
scalars.alloc (region_count, true); |
|
|
|
if (unlikely (!scalars.resize_exact (region_count))) |
|
|
|
if (unlikely (!scalars.resize (region_count))) |
|
|
|
|
|
|
|
SUPER::set_error (); |
|
|
|
SUPER::set_error (); |
|
|
|
else |
|
|
|
else |
|
|
|
varStore->varStore.get_region_scalars (get_ivs (), coords, num_coords, |
|
|
|
varStore->varStore.get_region_scalars (get_ivs (), coords, num_coords, |
|
|
|