finish selfref #1900

pull/1995/head
nick black 3 years ago committed by nick black
parent c71580d6d6
commit 0c21404564

@ -728,8 +728,9 @@ write_kitty_data(FILE* fp, int linesize, int leny, int lenx, int cols,
// old-style animated auxvecs carry the entirety of the replacement
// data in them. on the first pixel of the cell, ditch the previous
// auxvec in its entirety, and copy over the entire cell.
if(level == KITTY_ANIMATION){
if(x % cdimx == 0 && y % cdimy == 0){
// FIXME HERE
if(x % cdimx == 0 && y % cdimy == 0){
if(level == KITTY_ANIMATION){
uint8_t* tmp;
tmp = kitty_anim_auxvec(leny, lenx, y, x, cdimy, cdimx,
data, linesize, tam[tyx].auxvector,
@ -738,6 +739,8 @@ write_kitty_data(FILE* fp, int linesize, int leny, int lenx, int cols,
goto err;
}
tam[tyx].auxvector = tmp;
}else if(level == KITTY_SELFREF){
tam[tyx].auxvector = malloc(1);
}
}
if(tam[tyx].state >= SPRIXCELL_ANNIHILATED){

@ -110,7 +110,7 @@ setup_kitty_bitmaps(tinfo* ti, int fd, kitty_graphics_e level){
}else{
ti->pixel_wipe = kitty_wipe_selfref;
ti->pixel_rebuild = kitty_rebuild_selfref;
set_pixel_blitter(kitty_blit_animated);
set_pixel_blitter(kitty_blit_selfref);
}
}
sprite_init(ti, fd);

Loading…
Cancel
Save