[var] Fix type of coords returned
Ouch. Wonder how none of the bots caught the float->int truncation.
This commit is contained in:
parent
8f3ee17ae4
commit
be1828daaa
@ -210,7 +210,7 @@ struct fvar
|
||||
|
||||
inline unsigned int get_instance_coords (unsigned int index,
|
||||
unsigned int *coords_length, /* IN/OUT */
|
||||
int *coords /* OUT */) const
|
||||
float *coords /* OUT */) const
|
||||
{
|
||||
if (unlikely (index >= instanceCount))
|
||||
{
|
||||
|
@ -144,7 +144,7 @@ unsigned int
|
||||
hb_ot_var_named_instance_get_design_coords (hb_face_t *face,
|
||||
unsigned int instance_index,
|
||||
unsigned int *coords_length, /* IN/OUT */
|
||||
int *coords /* OUT */)
|
||||
float *coords /* OUT */)
|
||||
{
|
||||
return face->table.fvar->get_instance_coords (instance_index, coords_length, coords);
|
||||
}
|
||||
|
@ -124,7 +124,7 @@ HB_EXTERN unsigned int
|
||||
hb_ot_var_named_instance_get_design_coords (hb_face_t *face,
|
||||
unsigned int instance_index,
|
||||
unsigned int *coords_length, /* IN/OUT */
|
||||
int *coords /* OUT */);
|
||||
float *coords /* OUT */);
|
||||
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user