diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-01-06 15:57:07 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-01-21 10:53:30 +0000 |
| commit | 44d7242d1460543b720bfb537805798dcead987e (patch) | |
| tree | cbdca65dc0b1b91deaae1c2f5a2f7fc569c0c9fc | |
| parent | render: codespell: accomodate -> accommodate (diff) | |
render: sixel: fix assertion: x/y coords may be outside visible area
But when they are, width/height must be 0.
| -rw-r--r-- | render.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -872,8 +872,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); |
