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