cli: fix FPS display

1) the float format displayed like 50.123456789123456 wouldn't fit
   into the window title bar, and
2) most likely not into the char buffer of length 20, of which half
   was already used for the desmume string.
This commit is contained in:
rofl0r 2021-10-25 02:49:34 +00:00
parent 699f63d688
commit b685818413
1 changed files with 1 additions and 1 deletions

View File

@ -582,7 +582,7 @@ int main(int argc, char ** argv) {
fps_frame_counter = 0;
fps_timing = 0;
snprintf( win_title, sizeof(win_title), "Desmume %f", fps);
snprintf( win_title, sizeof(win_title), "Desmume %.02f", fps);
SDL_SetWindowTitle( window, win_title );
}