diff options
| author | Ray <[email protected]> | 2021-06-23 09:58:49 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-06-23 09:58:49 +0200 |
| commit | 3db26f82eae53677c2e4ee6a4a5901fa8eb5f190 (patch) | |
| tree | b8a6a638aacb916d26f17979612bfbf9f70d1a12 /src/textures.c | |
| parent | 716e26aa37e352f0188824bc2de7dd3035f7413c (diff) | |
| download | raylib-3db26f82eae53677c2e4ee6a4a5901fa8eb5f190.tar.gz raylib-3db26f82eae53677c2e4ee6a4a5901fa8eb5f190.zip | |
WARNING: BREAKING: Functions renamed!
RENAMED: GetCodepoints() -> LoadCodepoints(), now codepoint array data is loaded dynamically instead of reusing a limited static buffer.
ADDED: UnloadCodepoints() to safely free loaded codepoints
RENAMED: GetNextCodepoint() -> GetCodepoint()
Diffstat (limited to 'src/textures.c')
| -rw-r--r-- | src/textures.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/textures.c b/src/textures.c index 7017660b..a9c40d50 100644 --- a/src/textures.c +++ b/src/textures.c @@ -1114,7 +1114,7 @@ Image ImageTextEx(Font font, const char *text, float fontSize, float spacing, Co { // Get next codepoint from byte string and glyph index in font int codepointByteCount = 0; - int codepoint = GetNextCodepoint(&text[i], &codepointByteCount); + int codepoint = GetCodepoint(&text[i], &codepointByteCount); int index = GetGlyphIndex(font, codepoint); // NOTE: Normally we exit the decoding sequence as soon as a bad byte is found (and return 0x3f) |
