|
|
@ -428,6 +428,7 @@ write_kitty_data(FILE* fp, int linesize, int leny, int lenx, int cols,
|
|
|
|
fclose(fp);
|
|
|
|
fclose(fp);
|
|
|
|
return -1;
|
|
|
|
return -1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
bool scroll = false; // FIXME
|
|
|
|
bool translucent = bargs->flags & NCVISUAL_OPTION_BLEND;
|
|
|
|
bool translucent = bargs->flags & NCVISUAL_OPTION_BLEND;
|
|
|
|
int sprixelid = bargs->u.pixel.spx->id;
|
|
|
|
int sprixelid = bargs->u.pixel.spx->id;
|
|
|
|
int cdimy = bargs->u.pixel.celldimy;
|
|
|
|
int cdimy = bargs->u.pixel.celldimy;
|
|
|
@ -443,8 +444,9 @@ write_kitty_data(FILE* fp, int linesize, int leny, int lenx, int cols,
|
|
|
|
//fprintf(stderr, "total: %d chunks = %d, s=%d,v=%d\n", total, chunks, lenx, leny);
|
|
|
|
//fprintf(stderr, "total: %d chunks = %d, s=%d,v=%d\n", total, chunks, lenx, leny);
|
|
|
|
while(chunks--){
|
|
|
|
while(chunks--){
|
|
|
|
if(totalout == 0){
|
|
|
|
if(totalout == 0){
|
|
|
|
*parse_start = fprintf(fp, "\e_Gf=32,s=%d,v=%d,i=%d,a=T,%c=1;",
|
|
|
|
*parse_start = fprintf(fp, "\e_Gf=32,s=%d,v=%d,i=%d,a=T,%c=1%s;",
|
|
|
|
lenx, leny, sprixelid, chunks ? 'm' : 'q');
|
|
|
|
lenx, leny, sprixelid, chunks ? 'm' : 'q',
|
|
|
|
|
|
|
|
scroll ? "" : ",C=1");
|
|
|
|
}else{
|
|
|
|
}else{
|
|
|
|
fprintf(fp, "\e_G%sm=%d;", chunks ? "" : "q=2,", chunks ? 1 : 0);
|
|
|
|
fprintf(fp, "\e_G%sm=%d;", chunks ? "" : "q=2,", chunks ? 1 : 0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|