mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-15 15:58:14 +00:00
Review ExportImageAsCode() comment
This commit is contained in:
@@ -420,7 +420,8 @@ void ExportImageAsCode(Image image, const char *fileName)
|
|||||||
|
|
||||||
int dataSize = GetPixelDataSize(image.width, image.height, image.format);
|
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));
|
char *txtData = (char *)RL_CALLOC(6*dataSize + 2000, sizeof(char));
|
||||||
|
|
||||||
int bytesCount = 0;
|
int bytesCount = 0;
|
||||||
|
Reference in New Issue
Block a user