src/video/x11/SDL_x11modes.c
changeset 10030 061b1b467bd3
parent 10019 36f7e8084508
child 10031 2b3baddd9afa
     1.1 --- a/src/video/x11/SDL_x11modes.c	Tue Jan 05 02:27:50 2016 -0500
     1.2 +++ b/src/video/x11/SDL_x11modes.c	Tue Jan 05 02:29:16 2016 -0500
     1.3 @@ -342,7 +342,7 @@
     1.4          X11_XFree(props);
     1.5      }
     1.6  
     1.7 -    inches = (int)((SDL_sqrt(widthmm * widthmm + heightmm * heightmm) / 25.4f) + 0.5f);
     1.8 +    inches = (int)((SDL_sqrtf(widthmm * widthmm + heightmm * heightmm) / 25.4f) + 0.5f);
     1.9      if (*name && inches) {
    1.10          const size_t len = SDL_strlen(name);
    1.11          SDL_snprintf(&name[len], namelen-len, " %d\"", inches);