Add fontatlas and fontspread from Demolitionist development.
This commit is contained in:
parent
e63a373a4e
commit
d9b7139cf8
4 changed files with 308 additions and 0 deletions
8
cropng.c
8
cropng.c
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue