mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-24 08:21:32 +01:00
[var] Fix type of coords returned
Ouch. Wonder how none of the bots caught the float->int truncation.
This commit is contained in:
1 parent
8f3ee17ae4
commit
be1828daaa
3 files changed
+3
-3
No files matched your search
@@ -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))
|
||||
{
|
||||
|
||||
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
+1
-1
@@ -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 */);
|
||||
|
||||
|
||||
/*
|
||||
|
||||
Reference in new issue
Block a user