mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-22 01:40:17 -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,
|
.width = term->sixel.image.width,
|
||||||
.height = term->sixel.image.height,
|
.height = term->sixel.image.height,
|
||||||
.rows = (term->sixel.image.height + term->cell_height - 1) / term->cell_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},
|
.pos = (struct coord){term->cursor.point.col, term->grid->offset + term->cursor.point.row},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -181,6 +181,7 @@ struct sixel {
|
||||||
int width;
|
int width;
|
||||||
int height;
|
int height;
|
||||||
int rows;
|
int rows;
|
||||||
|
const struct grid *grid;
|
||||||
struct coord pos;
|
struct coord pos;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue