summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2025-08-11 13:30:33 +0200
committerMitja Felicijan <mitja.felicijan@gmail.com>2025-08-11 13:30:33 +0200
commita0dda3a3e12c34d2d8cf6a09b25944d176aa134e (patch)
treea3776d4f919247685da27747bc482f2684828976
parent952664101457f3f58b55de00c7d0cc5cba8645b9 (diff)
downloadbidi-a0dda3a3e12c34d2d8cf6a09b25944d176aa134e.tar.gz
Fixed spacing and added background to draw_info
-rw-r--r--main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/main.c b/main.c
index 6d6f8a6..c19c804 100644
--- a/main.c
+++ b/main.c
@@ -215,10 +215,10 @@ static int l_draw_info(lua_State *L) {
double runtime = GetTime();
int height = GetScreenHeight();
- DrawRectangle(10, GetScreenHeight() - 90, 160, 80, DARKBLUE);
- DrawTextEx(ctx.font, TextFormat("fps: %d", fps), (Vector2){ 20, height - 80 }, 20, 0, RAYWHITE);
- DrawTextEx(ctx.font, TextFormat("run: %.4f", runtime), (Vector2){ 20, height - 60 }, 20, 0, RAYWHITE);
- DrawTextEx(ctx.font, TextFormat("dt: %.4f", delta), (Vector2){ 20, height - 40 }, 20, 0, RAYWHITE);
+ DrawRectangle(10, height - 75, 150, 65, DARKBLUE);
+ DrawTextEx(ctx.font, TextFormat("fps: %d", fps), (Vector2){ 15, height - 70 }, 16, 0, RAYWHITE);
+ DrawTextEx(ctx.font, TextFormat("run: %.4f", runtime), (Vector2){ 15, height - 50 }, 16, 0, RAYWHITE);
+ DrawTextEx(ctx.font, TextFormat("dt: %.4f", delta), (Vector2){ 15, height - 30 }, 16, 0, RAYWHITE);
return 0;
}