[sixel] copy through sixel_maxy_pristine #2379

This commit is contained in:
nick black 2021-11-25 18:45:32 -05:00
parent 9d4b23d56f
commit d5e451939b
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC
2 changed files with 3 additions and 2 deletions

View File

@ -3073,8 +3073,8 @@ struct ncvisual_options {
// pass an origin of 0, 0 and a size of 0, 0 (or the true height and width).
// these numbers are all in terms of ncvisual pixels. negative values are
// prohibited.
unsigned begy, begx; // origin of rendered section
unsigned leny, lenx; // size of rendered section
unsigned begy, begx; // origin of rendered section in pixels
unsigned leny, lenx; // size of rendered section in pixels
// use NCBLIT_DEFAULT if you don't care, an appropriate blitter will be
// chosen for your terminal, given your scaling. NCBLIT_PIXEL is never
// chosen for NCBLIT_DEFAULT.

View File

@ -1089,6 +1089,7 @@ int interrogate_terminfo(tinfo* ti, FILE* out, unsigned utf8,
// kitty trumps sixel, when both are available
if((kitty_graphics = iresp->kitty_graphics) == 0){
ti->color_registers = iresp->color_registers;
ti->sixel_maxy_pristine = iresp->sixely;
ti->sixel_maxy = iresp->sixely;
ti->sixel_maxx = iresp->sixelx;
}