kitty 0.22.0 introduces self-referential composition, not 0.21.3

This commit is contained in:
nick black 2021-07-27 03:45:02 -04:00
parent 81879194d2
commit 24ccb66a20
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC
2 changed files with 5 additions and 5 deletions

View File

@ -213,12 +213,12 @@ typedef enum {
// time as animation. prior to this, graphics had to be entirely redrawn // time as animation. prior to this, graphics had to be entirely redrawn
// on any change, and it wasn't possible to use the bottom line. // on any change, and it wasn't possible to use the bottom line.
KITTY_ALWAYS_SCROLLS, KITTY_ALWAYS_SCROLLS,
// until 0.21.3's introduction of 't=z' for self-reference, we had to // until 0.22.0's introduction of 'a=c' for self-referential composition, we
// keep a complete copy of the RGBA data, in case a wiped cell needed to // had to keep a complete copy of the RGBA data, in case a wiped cell needed
// be rebuilt. we'd otherwise have to unpack the glyph and store it into // to be rebuilt. we'd otherwise have to unpack the glyph and store it into
// the auxvec on the fly. // the auxvec on the fly.
KITTY_ANIMATION, KITTY_ANIMATION,
// with 0.21.3, we only ever write transparent cells after writing the // with 0.22.0, we only ever write transparent cells after writing the
// original image (which we now deflate, since we needn't unpack it later). // original image (which we now deflate, since we needn't unpack it later).
// the only data we need keep is the auxvecs. // the only data we need keep is the auxvecs.
KITTY_SELFREF, KITTY_SELFREF,

View File

@ -508,7 +508,7 @@ apply_term_heuristics(tinfo* ti, const char* termname, int fd,
if(add_smulx_escapes(ti, tablelen, tableused)){ if(add_smulx_escapes(ti, tablelen, tableused)){
return -1; return -1;
} }
if(compare_versions(ti->termversion, "0.21.3") >= 0){ if(compare_versions(ti->termversion, "0.22.0") >= 0){
setup_kitty_bitmaps(ti, fd, KITTY_SELFREF); setup_kitty_bitmaps(ti, fd, KITTY_SELFREF);
}else if(compare_versions(ti->termversion, "0.20.0") >= 0){ }else if(compare_versions(ti->termversion, "0.20.0") >= 0){
setup_kitty_bitmaps(ti, fd, KITTY_ANIMATION); setup_kitty_bitmaps(ti, fd, KITTY_ANIMATION);