summaryrefslogtreecommitdiffhomepage
path: root/examples/core
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2021-06-26 21:07:00 +0200
committerraysan5 <[email protected]>2021-06-26 21:07:00 +0200
commit2f75657350f4377e41064c7ca2941e00e586be63 (patch)
tree7c6113bfdd73fb69d64eafa7a5f3ce3a952be888 /examples/core
parent00c87953853d46ede8ac8fa8c1b2640dc941f82c (diff)
downloadraylib-2f75657350f4377e41064c7ca2941e00e586be63.tar.gz
raylib-2f75657350f4377e41064c7ca2941e00e586be63.zip
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...
Diffstat (limited to 'examples/core')
-rw-r--r--examples/core/core_custom_frame_control.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/core/core_custom_frame_control.c b/examples/core/core_custom_frame_control.c
index a3306d13..93181e76 100644
--- a/examples/core/core_custom_frame_control.c
+++ b/examples/core/core_custom_frame_control.c
@@ -81,14 +81,14 @@ int main(void)
DrawCircle((int)position, GetScreenHeight()/2 - 25, 50, RED);
- DrawText(FormatText("%03.0f ms", timeCounter*1000.0f), position - 40, GetScreenHeight()/2 - 100, 20, MAROON);
- DrawText(FormatText("PosX: %03.0f", position), position - 50, GetScreenHeight()/2 + 40, 20, BLACK);
+ DrawText(TextFormat("%03.0f ms", timeCounter*1000.0f), position - 40, GetScreenHeight()/2 - 100, 20, MAROON);
+ DrawText(TextFormat("PosX: %03.0f", position), position - 50, GetScreenHeight()/2 + 40, 20, BLACK);
DrawText("Circle is moving at a constant 200 pixels/sec,\nindependently of the frame rate.", 10, 10, 20, DARKGRAY);
DrawText("PRESS SPACE to PAUSE MOVEMENT", 10, GetScreenHeight() - 60, 20, GRAY);
DrawText("PRESS UP | DOWN to CHANGE TARGET FPS", 10, GetScreenHeight() - 30, 20, GRAY);
- DrawText(FormatText("TARGET FPS: %i", targetFPS), GetScreenWidth() - 220, 10, 20, LIME);
- DrawText(FormatText("CURRENT FPS: %i", (int)(1.0f/deltaTime)), GetScreenWidth() - 220, 40, 20, GREEN);
+ DrawText(TextFormat("TARGET FPS: %i", targetFPS), GetScreenWidth() - 220, 10, 20, LIME);
+ DrawText(TextFormat("CURRENT FPS: %i", (int)(1.0f/deltaTime)), GetScreenWidth() - 220, 40, 20, GREEN);
EndDrawing();