This commit is contained in:
Ray 2023-06-03 19:50:46 +02:00
parent b1b6ae3905
commit ba802fdd5e
2 changed files with 3 additions and 2 deletions

View file

@ -3431,7 +3431,7 @@ unsigned char *CompressData(const unsigned char *data, int dataSize, int *compDa
struct sdefl sdefl = { 0 };
int bounds = sdefl_bound(dataSize);
compData = (unsigned char *)RL_CALLOC(bounds, 1);
*compDataSize = sdeflate(&sdefl, compData, data, dataSize, COMPRESSION_QUALITY_DEFLATE); // Compression level 8, same as stbwi
*compDataSize = sdeflate(&sdefl, compData, data, dataSize, COMPRESSION_QUALITY_DEFLATE); // Compression level 8, same as stbiw
TRACELOG(LOG_INFO, "SYSTEM: Compress data: Original size: %i -> Comp. size: %i", dataSize, *compDataSize);
#endif