mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
sixel: track which grid image was created on
This commit is contained in:
parent
86d640ef71
commit
a2b4bcbd4f
2 changed files with 2 additions and 0 deletions
1
sixel.c
1
sixel.c
|
|
@ -81,6 +81,7 @@ sixel_unhook(struct terminal *term)
|
|||
.width = term->sixel.image.width,
|
||||
.height = term->sixel.image.height,
|
||||
.rows = (term->sixel.image.height + term->cell_height - 1) / term->cell_height,
|
||||
.grid = term->grid,
|
||||
.pos = (struct coord){term->cursor.point.col, term->grid->offset + term->cursor.point.row},
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -181,6 +181,7 @@ struct sixel {
|
|||
int width;
|
||||
int height;
|
||||
int rows;
|
||||
const struct grid *grid;
|
||||
struct coord pos;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue