Skip to content

Commit

Permalink
doom: Fix fps readout
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryzee119 committed Nov 13, 2024
1 parent ab16f5f commit 97ba443
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doom.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ int doom_entry(const char *wad_path)
uint32_t x = 20;
char fps_buffer[16];
time = XBOX_MAX(time, 1);
snprintf(fps_buffer, sizeof(fps_buffer), "FPS: %d\n", 10000 / time);
snprintf(fps_buffer, sizeof(fps_buffer), "FPS: %5d\n", 10000 / time);
char *c = fps_buffer;
while (*c) {
display_write_char_ex(*c, x, 20, (void *)p);
Expand Down

0 comments on commit 97ba443

Please # to comment.