set sprixel_scale_height to 1 by default

pull/1937/head
nick black 3 years ago
parent 382b68f5ab
commit 3f2147b9e4
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -70,7 +70,6 @@ static inline void
setup_iterm_bitmaps(tinfo* ti, int fd){ setup_iterm_bitmaps(tinfo* ti, int fd){
ti->pixel_init = NULL; ti->pixel_init = NULL;
ti->pixel_shutdown = NULL; ti->pixel_shutdown = NULL;
ti->sprixel_scale_height = 1;
ti->pixel_remove = NULL; ti->pixel_remove = NULL;
// be awarre: absence of pixel_move plus absence of sixel details is used by // be awarre: absence of pixel_move plus absence of sixel details is used by
// notcurses-info to determine iTerm2 support. // notcurses-info to determine iTerm2 support.
@ -95,7 +94,6 @@ setup_kitty_bitmaps(tinfo* ti, int fd, int sixel_maxy_pristine){
ti->pixel_commit = kitty_commit; ti->pixel_commit = kitty_commit;
ti->pixel_move = kitty_move; ti->pixel_move = kitty_move;
ti->pixel_shutdown = kitty_shutdown; ti->pixel_shutdown = kitty_shutdown;
ti->sprixel_scale_height = 1;
ti->pixel_clear_all = kitty_clear_all; ti->pixel_clear_all = kitty_clear_all;
ti->sixel_maxy_pristine = sixel_maxy_pristine; ti->sixel_maxy_pristine = sixel_maxy_pristine;
if(sixel_maxy_pristine){ if(sixel_maxy_pristine){
@ -633,6 +631,7 @@ int interrogate_terminfo(tinfo* ti, int fd, const char* termname, unsigned utf8,
return -1; return -1;
} }
} }
ti->sprixel_scale_height = 1;
get_default_geometry(ti); get_default_geometry(ti);
ti->caps.utf8 = utf8; ti->caps.utf8 = utf8;
// allow the "rgb" boolean terminfo capability, a COLORTERM environment // allow the "rgb" boolean terminfo capability, a COLORTERM environment

Loading…
Cancel
Save