Fixed float conversion warning

main
Sam Lantinga 2023-02-22 15:33:47 -08:00
parent a758f87f6f
commit 756921a049
1 changed files with 1 additions and 1 deletions

View File

@ -1026,7 +1026,7 @@ const SDL_DisplayMode *SDL_GetClosestFullscreenDisplayMode(SDL_DisplayID display
aspect_ratio = 1.0f;
}
if (!refresh_rate) {
if (refresh_rate == 0.0f) {
mode = SDL_GetDesktopDisplayMode(displayID);
if (mode) {
refresh_rate = mode->refresh_rate;