summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRay <[email protected]>2021-01-12 20:25:09 +0100
committerRay <[email protected]>2021-01-12 20:25:09 +0100
commitdfa11e22cf48fffd40f87017ed3c359c0b640e74 (patch)
tree32e144463bd4313c7a18dfefa0ff19eefeacf0dd /src
parentc256b2662973cb2c253814790c56418ba118e0cb (diff)
downloadraylib-dfa11e22cf48fffd40f87017ed3c359c0b640e74.tar.gz
raylib-dfa11e22cf48fffd40f87017ed3c359c0b640e74.zip
Add comments
Diffstat (limited to 'src')
-rw-r--r--src/core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core.c b/src/core.c
index 32b30191..cd486b29 100644
--- a/src/core.c
+++ b/src/core.c
@@ -2558,6 +2558,7 @@ unsigned char *CompressData(unsigned char *data, int dataLength, int *compDataLe
unsigned char *compData = NULL;
#if defined(SUPPORT_COMPRESSION_API)
+ // TODO: WARNING: This function actually codes (and compresses) a valid zlib stream
compData = stbi_zlib_compress(data, dataLength, compDataLength, COMPRESSION_QUALITY_DEFLATE);
#endif
@@ -2570,6 +2571,7 @@ unsigned char *DecompressData(unsigned char *compData, int compDataLength, int *
char *data = NULL;
#if defined(SUPPORT_COMPRESSION_API)
+ // TODO: WARNING: This function actually decodes (and decompresses) a valid zlib stream
data = stbi_zlib_decode_malloc((char *)compData, compDataLength, dataLength);
#endif