[sixel] make some sixeltable args const

pull/1516/head
nick black 4 years ago
parent 7e78690597
commit 0c2e3d6e35
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -316,7 +316,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.
// Closes |fp| on all paths.
static int
write_sixel_data(FILE* fp, int lenx, sixeltable* stab, int* parse_start){
write_sixel_data(FILE* fp, int lenx, const sixeltable* stab, int* parse_start){
*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
@ -386,7 +386,7 @@ write_sixel_data(FILE* fp, int lenx, sixeltable* stab, int* parse_start){
// stacks. There is also a RLE component, handled in rasterization.
// A pixel block is indicated by setting cell_pixels_p().
static inline int
sixel_blit_inner(int leny, int lenx, sixeltable* stab, int rows, int cols,
sixel_blit_inner(int leny, int lenx, const sixeltable* stab, int rows, int cols,
const blitterargs* bargs, sprixcell_e* tacache){
char* buf = NULL;
size_t size = 0;

Loading…
Cancel
Save