diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2025-08-07 09:49:34 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2025-08-07 09:49:34 +0200 |
| commit | bb6eaf9e4ffdaa038cce11c6225584d54a59b131 (patch) | |
| tree | bdd1fb1ad2f6f878c59b1f688d09c208f533b518 /main.c | |
| parent | 797a3969a9d4e425f94a4688e8c451fcf3dfdfbc (diff) | |
| download | bidi-bb6eaf9e4ffdaa038cce11c6225584d54a59b131.tar.gz | |
Added custom vimrc and fixed typo in examples
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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); } |
