[subset-cff2] Micro-optimize blend operator

This commit is contained in:
Behdad Esfahbod 2022-11-26 15:14:52 -07:00
parent f159bf075b
commit 4167e93a15
1 changed files with 3 additions and 2 deletions

View File

@ -44,9 +44,10 @@ struct blend_arg_t : number_t
{
numValues = numValues_;
valueIndex = valueIndex_;
deltas.resize (numBlends);
if (unlikely (!deltas.resize (numBlends)))
return;
for (unsigned int i = 0; i < numBlends; i++)
deltas[i] = blends_[i];
deltas.arrayZ[i] = blends_.arrayZ[i];
}
bool blending () const { return deltas.length > 0; }