summaryrefslogtreecommitdiffhomepage
path: root/examples/textures
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2020-08-16 11:28:15 +0200
committerraysan5 <[email protected]>2020-08-16 11:28:15 +0200
commitc32ae480afd196d88acdfdb52d5261a61e0deb08 (patch)
treef34f662f64424cbade1678c07934b9c12455d68d /examples/textures
parent26f6a64a39671487f5d1eeeffe7fce6538669051 (diff)
downloadraylib-c32ae480afd196d88acdfdb52d5261a61e0deb08.tar.gz
raylib-c32ae480afd196d88acdfdb52d5261a61e0deb08.zip
RENAMED: FormatText() -> TextFormat()
This function was renamed for consistency in raylib 3.0, just unified all examples to use TextFormat() instead of FormatText()
Diffstat (limited to 'examples/textures')
-rw-r--r--examples/textures/textures_bunnymark.c4
-rw-r--r--examples/textures/textures_rectangle.c2
2 files changed, 3 insertions, 3 deletions
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++)