Don't write image as text yet.

pull/3363/head
Nicholas Marriott 2019-11-30 09:47:53 +00:00
parent b1904c9b8d
commit 146ee3f6f8
1 changed files with 0 additions and 14 deletions

View File

@ -1677,20 +1677,6 @@ void
screen_write_sixelimage(struct screen_write_ctx *ctx, struct sixel_image *si)
{
struct tty_ctx ttyctx;
struct screen *s = ctx->s, *image;
u_int sx = screen_size_x(s), sy = screen_size_y(s);
image = sixel_to_screen(si);
if (image == NULL)
return;
sx = sx - s->cx;
if (sx > screen_size_x(image))
sx = screen_size_x(image);
sy = sy - s->cx;
if (sy > screen_size_x(image))
sy = screen_size_x(image);
screen_write_fast_copy(ctx, image, 0, 0, sx, sy);
screen_write_initctx(ctx, &ttyctx);
ttyctx.ptr = si;