[kitty] fixup non-animated case

dankamongmen/linuxfbdumb
nick black 3 years ago committed by Nick Black
parent 6d6f69a02b
commit 0aa8b5267c

@ -161,8 +161,10 @@ int sprixel_load(sprixel* spx, char* s, int bytes, int pixy, int pixx,
return -1;
}
}
free(spx->glyph);
spx->glyph = s;
if(spx->glyph != s){
free(spx->glyph);
spx->glyph = s;
}
spx->glyphlen = bytes;
spx->invalidated = SPRIXEL_INVALIDATED;
spx->pixx = pixx;

Loading…
Cancel
Save