From b0b10127499fe916e8e5e3703c285913ea17e4ca Mon Sep 17 00:00:00 2001 From: OkiStuff Date: Wed, 24 Mar 2021 09:44:47 -0400 Subject: [PATCH] Added DrawFPSEx() --- src/text.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/text.c b/src/text.c index b9f59fe4e..ed68bfb3e 100644 --- a/src/text.c +++ b/src/text.c @@ -813,13 +813,20 @@ void UnloadFont(Font font) } } -// Shows current FPS on top-left corner +// Draws current FPS // NOTE: Uses default font void DrawFPS(int posX, int posY) { DrawText(TextFormat("%2i FPS", GetFPS()), posX, posY, 20, LIME); } +// Draws current FPS +// NOTE: Uses default font +void DrawFPSEx(int posX, int posY, Color tint) +{ + DrawText(TextFormat("%2i FPS", GetFPS()), posX, posY, 20, tint); +} + // Draw text (using default font) // NOTE: fontSize work like in any drawing program but if fontSize is lower than font-base-size, then font-base-size is used // NOTE: chars spacing is proportional to fontSize