diff options
| author | Ray <[email protected]> | 2020-09-14 19:20:38 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2020-09-14 19:20:38 +0200 |
| commit | 8cf0be4b6ce3a3cd04bdbc44ecfa3c2a304a891a (patch) | |
| tree | 9baed33adb1091a21c455d8aca9937382c744937 /src/text.c | |
| parent | 50736199620240c00e36a9168cde0b1ff47c5034 (diff) | |
| download | raylib-8cf0be4b6ce3a3cd04bdbc44ecfa3c2a304a891a.tar.gz raylib-8cf0be4b6ce3a3cd04bdbc44ecfa3c2a304a891a.zip | |
Review memory loading functions signesness
Diffstat (limited to 'src/text.c')
| -rw-r--r-- | src/text.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -341,7 +341,7 @@ Font LoadFontEx(const char *fileName, int fontSize, int *fontChars, int charsCou unsigned char *fileData = LoadFileData(fileName, &fileSize); // Loading font from memory data - font = LoadFontFromMemory(GetFileExtension(fileName), (char *)fileData, fileSize, fontSize, fontChars, charsCount); + font = LoadFontFromMemory(GetFileExtension(fileName), fileData, fileSize, fontSize, fontChars, charsCount); RL_FREE(fileData); @@ -471,7 +471,7 @@ Font LoadFontFromImage(Image image, Color key, int firstChar) } // Load font from memory buffer, fileType refers to extension: i.e. "ttf" -Font LoadFontFromMemory(const char *fileType, const char *fileData, int dataSize, int fontSize, int *fontChars, int charsCount) +Font LoadFontFromMemory(const char *fileType, const unsigned char *fileData, int dataSize, int fontSize, int *fontChars, int charsCount) { Font font = { 0 }; @@ -511,7 +511,7 @@ Font LoadFontFromMemory(const char *fileType, const char *fileData, int dataSize // Load font data for further use // NOTE: Requires TTF font memory data and can generate SDF data -CharInfo *LoadFontData(const char *fileData, int dataSize, int fontSize, int *fontChars, int charsCount, int type) +CharInfo *LoadFontData(const unsigned char *fileData, int dataSize, int fontSize, int *fontChars, int charsCount, int type) { // NOTE: Using some SDF generation default values, // trades off precision with ability to handle *smaller* sizes |
