Przeglądaj źródła

Review ExportImageAsCode() comment

pull/1262/head
raysan5 4 lat temu
rodzic
commit
b0f245d8c5
1 zmienionych plików z 2 dodań i 1 usunięć
  1. +2
    -1
      src/textures.c

+ 2
- 1
src/textures.c Wyświetl plik

@ -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;

Ładowanie…
Anuluj
Zapisz