diff options
| author | raysan5 <[email protected]> | 2018-07-05 19:08:24 +0200 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2018-07-05 19:08:24 +0200 |
| commit | d881c732578c238bf77b8a6755fa03f61dda9d5d (patch) | |
| tree | cd96b7ac77a97bed0dda8555ffdeef5a158406b1 /src/textures.c | |
| parent | 1f1d8eeeeb5aa34cfa41784c88cdce11fa525fa1 (diff) | |
| download | raylib-d881c732578c238bf77b8a6755fa03f61dda9d5d.tar.gz raylib-d881c732578c238bf77b8a6755fa03f61dda9d5d.zip | |
Renamed GetDefaultFont() to GetFontDefault()
Library consistency rename... yes, I know, it breaks the API...
Diffstat (limited to 'src/textures.c')
| -rw-r--r-- | src/textures.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/textures.c b/src/textures.c index f2dc7ca3..1c6b6184 100644 --- a/src/textures.c +++ b/src/textures.c @@ -1532,7 +1532,7 @@ Image ImageText(const char *text, int fontSize, Color color) if (fontSize < defaultFontSize) fontSize = defaultFontSize; int spacing = (float)fontSize/defaultFontSize; - Image imText = ImageTextEx(GetDefaultFont(), text, (float)fontSize, (float)spacing, color); + Image imText = ImageTextEx(GetFontDefault()(), text, (float)fontSize, (float)spacing, color); return imText; } @@ -1606,7 +1606,7 @@ Image ImageTextEx(Font font, const char *text, float fontSize, float spacing, Co TraceLog(LOG_INFO, "Image text scaled by factor: %f", scaleFactor); // Using nearest-neighbor scaling algorithm for default font - if (font.texture.id == GetDefaultFont().texture.id) ImageResizeNN(&imText, (int)(imSize.x*scaleFactor), (int)(imSize.y*scaleFactor)); + if (font.texture.id == GetFontDefault()().texture.id) ImageResizeNN(&imText, (int)(imSize.x*scaleFactor), (int)(imSize.y*scaleFactor)); else ImageResize(&imText, (int)(imSize.x*scaleFactor), (int)(imSize.y*scaleFactor)); } @@ -1629,7 +1629,7 @@ void ImageDrawRectangle(Image *dst, Vector2 position, Rectangle rec, Color color void ImageDrawText(Image *dst, Vector2 position, const char *text, int fontSize, Color color) { // NOTE: For default font, sapcing is set to desired font size / default font size (10) - ImageDrawTextEx(dst, position, GetDefaultFont(), text, (float)fontSize, (float)fontSize/10, color); + ImageDrawTextEx(dst, position, GetFontDefault()(), text, (float)fontSize, (float)fontSize/10, color); } // Draw text (custom sprite font) within an image (destination) |
