From c32ae480afd196d88acdfdb52d5261a61e0deb08 Mon Sep 17 00:00:00 2001 From: raysan5 Date: Sun, 16 Aug 2020 11:28:15 +0200 Subject: RENAMED: FormatText() -> TextFormat() This function was renamed for consistency in raylib 3.0, just unified all examples to use TextFormat() instead of FormatText() --- examples/textures/textures_bunnymark.c | 4 ++-- examples/textures/textures_rectangle.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/textures') diff --git a/examples/textures/textures_bunnymark.c b/examples/textures/textures_bunnymark.c index 86605b90..8182102c 100644 --- a/examples/textures/textures_bunnymark.c +++ b/examples/textures/textures_bunnymark.c @@ -98,8 +98,8 @@ int main(void) } DrawRectangle(0, 0, screenWidth, 40, BLACK); - DrawText(FormatText("bunnies: %i", bunniesCount), 120, 10, 20, GREEN); - DrawText(FormatText("batched draw calls: %i", 1 + bunniesCount/MAX_BATCH_ELEMENTS), 320, 10, 20, MAROON); + DrawText(TextFormat("bunnies: %i", bunniesCount), 120, 10, 20, GREEN); + DrawText(TextFormat("batched draw calls: %i", 1 + bunniesCount/MAX_BATCH_ELEMENTS), 320, 10, 20, MAROON); DrawFPS(10, 10); diff --git a/examples/textures/textures_rectangle.c b/examples/textures/textures_rectangle.c index 8be647a2..1665917e 100644 --- a/examples/textures/textures_rectangle.c +++ b/examples/textures/textures_rectangle.c @@ -71,7 +71,7 @@ int main(void) DrawRectangleLines(15 + frameRec.x, 40 + frameRec.y, frameRec.width, frameRec.height, RED); DrawText("FRAME SPEED: ", 165, 210, 10, DARKGRAY); - DrawText(FormatText("%02i FPS", framesSpeed), 575, 210, 10, DARKGRAY); + DrawText(TextFormat("%02i FPS", framesSpeed), 575, 210, 10, DARKGRAY); DrawText("PRESS RIGHT/LEFT KEYS to CHANGE SPEED!", 290, 240, 10, DARKGRAY); for (int i = 0; i < MAX_FRAME_SPEED; i++) -- cgit v1.2.3