optimize clearing lines by using pointers to define the row order

This commit is contained in:
2025-01-29 11:56:07 +01:00
parent 1a342d764c
commit d0ba27ee0f
5 changed files with 59 additions and 32 deletions

View File

@@ -19,7 +19,7 @@ static void set_shape_i(Row* row, const ShapeId id, const uint8_t pos_x) {
for (uint8_t x = 0; x < SHAPE_WIDTH; x++)
if (is_set(shape_row, x))
row[y].columns[x + pos_x] = colour;
row[y][x + pos_x] = colour;
}
}