mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-26 07:57:59 -04:00
csi: multi-cursor: refactor: loop boxes directly, without indexing
This commit is contained in:
parent
265c93c4c4
commit
7c4ac3f348
1 changed files with 1 additions and 2 deletions
3
csi.c
3
csi.c
|
|
@ -2334,8 +2334,7 @@ csi_dispatch(struct terminal *term, uint8_t final)
|
||||||
pixman_region32_rectangles(&modified, &rect_count);
|
pixman_region32_rectangles(&modified, &rect_count);
|
||||||
|
|
||||||
/* Set shape, and dirty affected cells */
|
/* Set shape, and dirty affected cells */
|
||||||
for (int j = 0; j < rect_count; j++) {
|
for (const pixman_box32_t *box = boxes; box < &boxes[rect_count]; box++) {
|
||||||
const pixman_box32_t *box = &boxes[j];
|
|
||||||
for (int r = box->y1; r < box->y2; r++) {
|
for (int r = box->y1; r < box->y2; r++) {
|
||||||
struct row *row = grid_row(term->grid, r);
|
struct row *row = grid_row(term->grid, r);
|
||||||
xassert(row != NULL);
|
xassert(row != NULL);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue