mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-04 04:54:42 +00:00
Fixed float conversion warning
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user