sixel: add: resize is already checking against the current max geometry

This commit is contained in:
Daniel Eklöf 2021-03-06 21:37:37 +01:00
parent 839b7dd32e
commit dfdb42138d
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -917,12 +917,6 @@ sixel_add(struct terminal *term, uint32_t color, uint8_t sixel)
{
//LOG_DBG("adding sixel %02hhx using color 0x%06x", sixel, color);
if (term->sixel.pos.col >= term->sixel.max_width ||
term->sixel.pos.row + 5 >= term->sixel.max_height)
{
return;
}
if (term->sixel.pos.col >= term->sixel.image.width ||
term->sixel.pos.row >= term->sixel.image.height)
{