mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 06:51:01 +01:00
[hvgl] Remove an unnecessary check
It's a rare case; no need to check it first.
This commit is contained in:
1 parent
6da4fb10fc
commit
07a97adb41
1 file changed
+2
-6
@@ -259,12 +259,6 @@ void ExtremumColumnStarts::apply_to_coords (hb_array_t<float> out_coords,
|
||||
|
||||
for (unsigned column_idx = 0; column_idx < 2 * axis_count; column_idx++)
|
||||
{
|
||||
const auto &sparse_row_start = extremumColumnStart.arrayZ[column_idx];
|
||||
const auto &sparse_row_end = extremumColumnStart.arrayZ[column_idx + 1];
|
||||
|
||||
if (sparse_row_start == sparse_row_end)
|
||||
continue;
|
||||
|
||||
unsigned axis_idx = column_idx / 2;
|
||||
float coord = coords[axis_idx];
|
||||
if (!coord)
|
||||
@@ -274,6 +268,8 @@ void ExtremumColumnStarts::apply_to_coords (hb_array_t<float> out_coords,
|
||||
continue;
|
||||
float scalar = fabsf (coord);
|
||||
|
||||
const auto &sparse_row_start = extremumColumnStart.arrayZ[column_idx];
|
||||
const auto &sparse_row_end = extremumColumnStart.arrayZ[column_idx + 1];
|
||||
for (unsigned row_idx = sparse_row_start; row_idx < sparse_row_end; row_idx++)
|
||||
{
|
||||
unsigned row = extremum_row_index[row_idx];
|
||||
|
||||
Reference in new issue
Block a user