Răsfoiți Sursa

Fixed float conversion warning

Sam Lantinga 2 ani în urmă
părinte
comite
756921a049
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      src/video/SDL_video.c

+ 1 - 1
src/video/SDL_video.c

@@ -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;