mirror of
https://github.com/tmux/tmux.git
synced 2025-01-09 01:28:49 +00:00
Don't write image as text yet.
This commit is contained in:
parent
b1904c9b8d
commit
146ee3f6f8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user