mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
grid: add TODO, and an assert, that sixels must not cross wrap-around
This commit is contained in:
parent
1915e53629
commit
644c8ef879
1 changed files with 4 additions and 0 deletions
4
grid.c
4
grid.c
|
|
@ -123,6 +123,10 @@ grid_reflow(struct grid *grid, int new_rows, int new_cols,
|
|||
struct sixel six = it->item;
|
||||
six.pos.row = new_row_idx;
|
||||
|
||||
/* TODO: ensure sixels don't span across the wrap-around */
|
||||
int end __attribute__((unused)) = (six.pos.row + six.rows - 1) & (new_rows - 1);
|
||||
assert(end >= six.pos.row);
|
||||
|
||||
tll_push_back(new_sixels, six);
|
||||
tll_remove(grid->sixel_images, it);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue