Add fontatlas and fontspread from Demolitionist development.

This commit is contained in:
Marisa the Magician 2022-08-22 17:56:31 +02:00
commit d9b7139cf8
4 changed files with 308 additions and 0 deletions

View file

@ -278,6 +278,14 @@ void processpic( const char *fname )
cropy = 0;
croph = h;
}
if ( (cropx >= w) || (cropy >= h) || (cropw <= 0) || (croph <= 0) )
{
printf(" Image crops to zero size, skipping.\n");
free(idata);
if ( plte ) free(plte);
if ( trns ) free(trns);
return;
}
uint8_t *odata = calloc(cropw*croph,pxsize);
uint32_t ow = cropw, oh = croph;
int32_t ox = x-cropx, oy = y-cropy;