[hvgl] Name a value

This commit is contained in:
Behdad Esfahbod committed 2025-03-02 16:57:55 -07:00
1 parent da3fca4685
commit dbef4e324d
1 file changed
+4 -3
+4 -3
View File
@@ -152,7 +152,8 @@ PartShape::get_path_at (const struct hvgl &hvgl,
}
double coord = (double) coords.arrayZ[axis_index];
coords4[j] = coord;
column_idx[j] = axis_index * 2 + (coord > 0.);
bool pos = coord > 0.;
column_idx[j] = axis_index * 2 + pos;
axis_index++;
}
if (!j)
@@ -183,7 +184,7 @@ PartShape::get_path_at (const struct hvgl &hvgl,
{
float coord = coords.arrayZ[axis_index];
if (!coord) continue;
bool pos = coord > 0;
bool pos = coord > 0.f;
unsigned column_idx = axis_index * 2 + pos;
double scalar = (double) fabsf(coord);
@@ -313,7 +314,7 @@ void ExtremumColumnStarts::apply_to_coords (hb_array_t<float> out_coords,
{
float coord = coords.arrayZ[axis_idx];
if (!coord) continue;
bool pos = coord > 0;
bool pos = coord > 0.f;
unsigned column_idx = axis_idx * 2 + pos;
float scalar = fabsf (coord);