[sixel_wipe] set SIXEL_P2_TRANS #1527

pull/1535/head
nick black 3 years ago
parent 567c351b8f
commit 39335bc210
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -540,3 +540,14 @@ int sprite_sixel_init(int fd){
// the upper left corner of the screen).
return tty_emit("\e[?80;8452h", fd);
}
// we return -1 because we're not doing a proper wipe -- that's not possible
// using sixel. we just mark it as partially transparent, so that if it's
// redrawn, it's redrawn using P2=1.
int sixel_wipe(const notcurses* nc, sprixel* s, int ycell, int xcell){
(void)nc;
(void)ycell;
(void)xcell;
change_p2(s->glyph, SIXEL_P2_TRANS);
return -1;
}

@ -338,6 +338,7 @@ setup_sixel(tinfo* ti){
ti->sixel_maxx = 4096; // whee!
ti->sixel_maxy = 4096;
ti->pixel_destroy = sixel_delete;
ti->pixel_cell_wipe = sixel_wipe;
}
// query for Sixel support

Loading…
Cancel
Save