diff options
| author | Ray <[email protected]> | 2020-12-18 21:03:08 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2020-12-18 21:03:08 +0100 |
| commit | e07bc372a1109cc782b940162c2aedb5defc0ba8 (patch) | |
| tree | caeddf2d949ec325720149c61c9aaaeb901d2a92 /src/text.c | |
| parent | 5dd142beb62f7848eb857505250fb9978601bc6e (diff) | |
| download | raylib-e07bc372a1109cc782b940162c2aedb5defc0ba8.tar.gz raylib-e07bc372a1109cc782b940162c2aedb5defc0ba8.zip | |
WARNING: RENAMED several functions for consistency #1440
This is a BREAKING CHANGE!
To address the linked issue, several functions have been renamed and couterpart functions have been created to free loaded memory:
- RENAMED: GetImageData() -> LoadImageColors()
- RENAMED: GetImagePalette() -> LoadImagePalette()
- RENAMED: GetWaveData() -> LoadWaveSamples()
- ADDED: UnloadImageColors()
- ADDED: UnloadImagePalette()
- ADDED: UnloadWaveSamples()
Diffstat (limited to 'src/text.c')
| -rw-r--r-- | src/text.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -376,7 +376,7 @@ Font LoadFontFromImage(Image image, Color key, int firstChar) int tempCharValues[MAX_GLYPHS_FROM_IMAGE]; Rectangle tempCharRecs[MAX_GLYPHS_FROM_IMAGE]; - Color *pixels = GetImageData(image); + Color *pixels = LoadImageColors(image); // Parse image data to get charSpacing and lineSpacing for (y = 0; y < image.height; y++) |
