summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2020-05-24 15:47:15 +0200
committerraysan5 <[email protected]>2020-05-24 15:47:15 +0200
commitb0f245d8c540f0a71cf61c06b4fc5b622aa4967a (patch)
tree6e55d46e98e2514850ec766676579909854bfcf4
parent8120547639e5fde9d12a85193b5b6325ab75f922 (diff)
downloadraylib-b0f245d8c540f0a71cf61c06b4fc5b622aa4967a.tar.gz
raylib-b0f245d8c540f0a71cf61c06b4fc5b622aa4967a.zip
Review ExportImageAsCode() comment
-rw-r--r--src/textures.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/textures.c b/src/textures.c
index 530fd235..d73cc1c6 100644
--- a/src/textures.c
+++ b/src/textures.c
@@ -420,7 +420,8 @@ void ExportImageAsCode(Image image, const char *fileName)
int dataSize = GetPixelDataSize(image.width, image.height, image.format);
- // NOTE: Text data buffer size is estimated considering image data size
+ // NOTE: Text data buffer size is estimated considering image data size in bytes
+ // and requiring 6 char bytes for every byte: "0x00, "
char *txtData = (char *)RL_CALLOC(6*dataSize + 2000, sizeof(char));
int bytesCount = 0;