Merge branch 'color-text-fps' of https://github.com/m-Torio/raylib into color-text-fps

This commit is contained in:
Iftikhar Ahmed 2023-12-30 21:56:14 -07:00
commit 875d0f0aac

View File

@ -1089,6 +1089,7 @@ void DrawFPS(int posX, int posY)
DrawText(TextFormat("%2i FPS", fps), posX, posY, 20, color); DrawText(TextFormat("%2i FPS", fps), posX, posY, 20, color);
} }
// Draw current FPS, but based on one user-specified color
void DrawFPS(int posX, int posY, Color color) void DrawFPS(int posX, int posY, Color color)
{ {
int fps = GetFPS(); int fps = GetFPS();