[avar2] Clamp out values

This commit is contained in:
Behdad Esfahbod 2022-06-29 11:09:54 -06:00
parent d0e2ad9297
commit d6c4f757a4
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ struct avar
uint32_t varidx = varidx_map.map (i);
float delta = var_store.get_delta (varidx, coords, coords_length);
v += round (delta);
/* TODO Clamp v? */
v = hb_clamp (v, -(1<<14), +(1<<14));
out.push (v);
}