mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
render: sixel: fix assertion: x/y coords may be outside visible area
But when they are, width/height must be 0.
This commit is contained in:
parent
21dbb44a30
commit
124759bd2c
1 changed files with 2 additions and 2 deletions
4
render.c
4
render.c
|
|
@ -893,8 +893,8 @@ render_sixel_chunk(struct terminal *term, pixman_image_t *pix, const struct sixe
|
|||
/* Verify we're not stepping outside the grid */
|
||||
assert(x >= term->margins.left);
|
||||
assert(y >= term->margins.top);
|
||||
assert(x + width <= term->width - term->margins.right);
|
||||
assert(y + height <= term->height - term->margins.bottom);
|
||||
assert(width == 0 || x + width <= term->width - term->margins.right);
|
||||
assert(height == 0 || y + height <= term->height - term->margins.bottom);
|
||||
|
||||
//LOG_DBG("sixel chunk: %dx%d %dx%d", x, y, width, height);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue