From 2f75657350f4377e41064c7ca2941e00e586be63 Mon Sep 17 00:00:00 2001 From: raysan5 Date: Sat, 26 Jun 2021 21:07:00 +0200 Subject: WARNING: REMOVED: Some deprecated function names mapping Some functions/values have been deprecated for long time but some mapping was kept for convenience. Some of those mappings have been removed... --- src/raylib.h | 8 ++------ src/text.c | 4 ++-- 2 files changed, 4 insertions(+), 8 deletions(-) (limited to 'src') diff --git a/src/raylib.h b/src/raylib.h index 210c36b8..b27b1520 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -158,12 +158,8 @@ #define MAGENTA CLITERAL(Color){ 255, 0, 255, 255 } // Magenta #define RAYWHITE CLITERAL(Color){ 245, 245, 245, 255 } // My own White (raylib logo) -// Temporal hacks to avoid breaking old codebases using -// deprecated raylib implementation or definitions -#define SpriteFont Font -#define FormatText TextFormat -#define LoadText LoadFileText -#define GetExtension GetFileExtension +// WARNING: Temporal hacks to avoid breaking old codebases using +// deprecated raylib implementations or definitions #define GetImageData LoadImageColors #define FILTER_POINT TEXTURE_FILTER_POINT #define FILTER_BILINEAR TEXTURE_FILTER_BILINEAR diff --git a/src/text.c b/src/text.c index 13015ef9..0a02f23e 100644 --- a/src/text.c +++ b/src/text.c @@ -444,7 +444,7 @@ Font LoadFontFromImage(Image image, Color key, int firstChar) .mipmaps = 1 }; - // Create spritefont with all data parsed from image + // Create font with all data parsed from image Font font = { 0 }; font.texture = LoadTextureFromImage(fontClear); // Convert processed image to OpenGL texture @@ -1122,7 +1122,7 @@ Vector2 MeasureTextEx(Font font, const char *text, float fontSize, float spacing return vec; } -// Get index position for a unicode character on spritefont +// Get index position for a unicode character on font int GetGlyphIndex(Font font, int codepoint) { #ifndef GLYPH_NOTFOUND_CHAR_FALLBACK -- cgit v1.2.3