summaryrefslogtreecommitdiffhomepage
path: root/src/text.c
diff options
context:
space:
mode:
authorRay <[email protected]>2020-12-18 21:03:08 +0100
committerRay <[email protected]>2020-12-18 21:03:08 +0100
commite07bc372a1109cc782b940162c2aedb5defc0ba8 (patch)
treecaeddf2d949ec325720149c61c9aaaeb901d2a92 /src/text.c
parent5dd142beb62f7848eb857505250fb9978601bc6e (diff)
downloadraylib-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/text.c b/src/text.c
index f0ea7985..f9898e32 100644
--- a/src/text.c
+++ b/src/text.c
@@ -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++)