Skip to content

Commit

Permalink
Call sixel_scale with the right number of arguments.
Browse files Browse the repository at this point in the history
  • Loading branch information
nicm committed Dec 5, 2019
1 parent 62c0280 commit 7566e37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -1896,9 +1896,9 @@ tty_cmd_sixelimage(struct tty *tty, const struct tty_ctx *ctx)
log_debug("%s: image is %ux%u", __func__, sx, sy);
if (!tty_clamp_area(tty, ctx, cx, cy, sx, sy, &i, &j, &x, &y, &rx, &ry))
return;
log_debug("%s: clamping to section %u,%u-%u,%u", __func__, i, j, rx, ry);
log_debug("%s: clamping to %u,%u-%u,%u", __func__, i, j, rx, ry);

new = sixel_scale(si, tty->xpixel, tty->ypixel, i, j, rx, ry);
new = sixel_scale(si, tty->xpixel, tty->ypixel, i, j, rx, ry, 0);
if (new == NULL)
return;

Expand Down

0 comments on commit 7566e37

Please sign in to comment.