mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 01:29:05 -04:00
[sixel_wipe] set SIXEL_P2_TRANS #1527
This commit is contained in:
parent
567c351b8f
commit
39335bc210
@ -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…
x
Reference in New Issue
Block a user