mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
cmake fixes
This commit is contained in:
@@ -594,8 +594,6 @@ int load_apng(unsigned char *filedata, unsigned int filesize, struct apng_data *
|
||||
channels = 2;
|
||||
else if (coltype == 6)
|
||||
channels = 4;
|
||||
if(coltype == 3)
|
||||
printf("coltype %d w %d h %d\n", coltype, w, h);
|
||||
|
||||
pixeldepth = depth*channels;
|
||||
bpp = (pixeldepth + 7) >> 3;
|
||||
@@ -878,11 +876,11 @@ int load_apng(unsigned char *filedata, unsigned int filesize, struct apng_data *
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
void free_apng(struct apng_data *apng)
|
||||
{
|
||||
if(apng->pdata)
|
||||
free(apng->pdata);
|
||||
if(apng->frames_delay)
|
||||
free(apng->frames_delay);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user