summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2025-08-07 09:49:34 +0200
committerMitja Felicijan <mitja.felicijan@gmail.com>2025-08-07 09:49:34 +0200
commitbb6eaf9e4ffdaa038cce11c6225584d54a59b131 (patch)
treebdd1fb1ad2f6f878c59b1f688d09c208f533b518 /main.c
parent797a3969a9d4e425f94a4688e8c451fcf3dfdfbc (diff)
downloadbidi-bb6eaf9e4ffdaa038cce11c6225584d54a59b131.tar.gz
Added custom vimrc and fixed typo in examples
Diffstat (limited to 'main.c')
-rw-r--r--main.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/main.c b/main.c
index b237a46..00e11d2 100644
--- a/main.c
+++ b/main.c
@@ -120,9 +120,9 @@ static int l_draw_info(lua_State *L) {
double runtime = GetTime();
int height = GetScreenHeight();
- DrawTextEx(ctx.font, TextFormat("dt: %f", delta), (Vector2){ 20, height - 80 }, 20, 0, RAYWHITE);
+ DrawTextEx(ctx.font, TextFormat("fps: %d", fps), (Vector2){ 20, height - 80 }, 20, 0, RAYWHITE);
DrawTextEx(ctx.font, TextFormat("run: %f", runtime), (Vector2){ 20, height - 60 }, 20, 0, RAYWHITE);
- DrawTextEx(ctx.font, TextFormat("fps: %d", fps), (Vector2){ 20, height - 40 }, 20, 0, RAYWHITE);
+ DrawTextEx(ctx.font, TextFormat("dt: %f", delta), (Vector2){ 20, height - 40 }, 20, 0, RAYWHITE);
return 0;
}
@@ -183,7 +183,6 @@ int main(int argc, char *argv[]) {
if (run_file) {
SetTraceLogLevel(debug_level);
-
lua_State *L = luaL_newstate();
luaL_openlibs(L);
@@ -209,7 +208,7 @@ int main(int argc, char *argv[]) {
return 1;
}
- UnloadFont(ctx.font); // Unload font from GPU memory (VRAM)
+ UnloadFont(ctx.font);
lua_close(L);
}