mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 17:19:03 -04:00
[sixel] clean up warnings from merge :(
This commit is contained in:
parent
f8b68947f3
commit
c5a70dbd43
@ -931,8 +931,11 @@ int sprite_kitty_annihilate(const notcurses* nc, const ncpile* p, FILE* out, spr
|
||||
}
|
||||
|
||||
int sprite_sixel_annihilate(const notcurses* nc, const ncpile* p, FILE* out, sprixel* s){
|
||||
/*
|
||||
(void)nc;
|
||||
(void)p;
|
||||
(void)out;
|
||||
(void)s;
|
||||
/*
|
||||
struct crender* rvec = p->crender;
|
||||
// FIXME need to cap by ends minus bottom, right margins also
|
||||
const int ycap = nc->stdplane->leny + nc->margin_t;
|
||||
|
@ -415,7 +415,7 @@ write_rle(int* printed, int color, FILE* fp, int seenrle, unsigned char crle){
|
||||
|
||||
// Emit the sprixel in its entirety, plus enable and disable pixel mode.
|
||||
static int
|
||||
write_sixel_data(FILE* fp, int lenx, int leny, sixeltable* stab, int* parse_start, int* tacache){
|
||||
write_sixel_data(FILE* fp, int lenx, sixeltable* stab, int* parse_start, int* tacache){
|
||||
*parse_start = fprintf(fp, "\ePq");
|
||||
// Set Raster Attributes - pan/pad=1 (pixel aspect ratio), Ph=lenx, Pv=leny
|
||||
// using Ph/Pv causes a background to be drawn using color register 0 for all
|
||||
@ -502,7 +502,7 @@ int sixel_blit_inner(ncplane* nc, int leny, int lenx, sixeltable* stab,
|
||||
free(buf);
|
||||
return -1;
|
||||
}
|
||||
if(write_sixel_data(fp, lenx, leny, stab, &parse_start, tacache)){
|
||||
if(write_sixel_data(fp, lenx, stab, &parse_start, tacache)){
|
||||
free(tacache);
|
||||
free(buf);
|
||||
return -1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user