diff options
| author | raysan5 <[email protected]> | 2020-05-23 19:46:58 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2020-05-23 19:46:58 +0200 |
| commit | 4e8e90b6dfa7ea81433acb673e3612effafb0f33 (patch) | |
| tree | baae1e0cbb21edc98a2d3aa13046dca4ee0bd518 /src | |
| parent | 0bcb89297532d4622c76501a47478678ca8342e7 (diff) | |
| download | raylib-4e8e90b6dfa7ea81433acb673e3612effafb0f33.tar.gz raylib-4e8e90b6dfa7ea81433acb673e3612effafb0f33.zip | |
Add note comment on ExportImageAsCode()
Diffstat (limited to 'src')
| -rw-r--r-- | src/textures.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/textures.c b/src/textures.c index 6523d036..06fc3e36 100644 --- a/src/textures.c +++ b/src/textures.c @@ -450,6 +450,7 @@ void ExportImageAsCode(Image image, const char *fileName) for (int i = 0; i < dataSize - 1; i++) bytesCount += sprintf(txtData + bytesCount, ((i%TEXT_BYTES_PER_LINE == 0)? "0x%x,\n" : "0x%x, "), ((unsigned char *)image.data)[i]); bytesCount += sprintf(txtData + bytesCount, "0x%x };\n", ((unsigned char *)image.data)[dataSize - 1]); + // NOTE: Text data length exported is determined by '\0' (NULL) character SaveFileText(fileName, txtData); RL_FREE(txtData); |
