The refresh rate in SDL_DisplayMode is now a float

This commit is contained in:
Sam Lantinga
2023-01-02 15:47:19 -08:00
parent 851b0e16be
commit e3c1749f5b
32 changed files with 107 additions and 83 deletions

View File

@@ -24,7 +24,7 @@ print_mode(const char *prefix, const SDL_DisplayMode *mode)
return;
}
SDL_Log("%s: fmt=%s w=%d h=%d refresh=%d\n",
SDL_Log("%s: fmt=%s w=%d h=%d refresh=%gHz\n",
prefix, SDL_GetPixelFormatName(mode->format),
mode->w, mode->h, mode->refresh_rate);
}