diff --git a/src/lib/kitty.c b/src/lib/kitty.c index a954610c8..506ca4af6 100644 --- a/src/lib/kitty.c +++ b/src/lib/kitty.c @@ -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){ diff --git a/src/lib/termdesc.c b/src/lib/termdesc.c index 3969a3efa..6a81f6090 100644 --- a/src/lib/termdesc.c +++ b/src/lib/termdesc.c @@ -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);