[fvar] minor simplification
This commit is contained in:
parent
4e37c48e37
commit
82ec9ef2e9
|
@ -146,10 +146,9 @@ struct fvar
|
||||||
{
|
{
|
||||||
if (axes_count)
|
if (axes_count)
|
||||||
{
|
{
|
||||||
hb_array_t<const AxisRecord> arr = hb_array (&(this+firstAxis), axisCount).sub_array (start_offset, axes_count);
|
hb_array_t<const AxisRecord> arr = get_axes ().sub_array (start_offset, axes_count);
|
||||||
const AxisRecord *axes = get_axes ();
|
|
||||||
for (unsigned i = 0; i < arr.length; ++i)
|
for (unsigned i = 0; i < arr.length; ++i)
|
||||||
axes[start_offset + i].get_axis_deprecated (&axes_array[i]);
|
arr[i].get_axis_deprecated (&axes_array[i]);
|
||||||
}
|
}
|
||||||
return axisCount;
|
return axisCount;
|
||||||
}
|
}
|
||||||
|
@ -161,10 +160,9 @@ struct fvar
|
||||||
{
|
{
|
||||||
if (axes_count)
|
if (axes_count)
|
||||||
{
|
{
|
||||||
hb_array_t<const AxisRecord> arr = hb_array (&(this+firstAxis), axisCount).sub_array (start_offset, axes_count);
|
hb_array_t<const AxisRecord> arr = get_axes ().sub_array (start_offset, axes_count);
|
||||||
const AxisRecord *axes = get_axes ();
|
|
||||||
for (unsigned i = 0; i < arr.length; ++i)
|
for (unsigned i = 0; i < arr.length; ++i)
|
||||||
axes[start_offset + i].get_axis_info (start_offset + i, &axes_array[i]);
|
arr[i].get_axis_info (start_offset + i, &axes_array[i]);
|
||||||
}
|
}
|
||||||
return axisCount;
|
return axisCount;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue