]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - gl_backend.c
Updated Transfusion map list for version 1.1 beta3
[xonotic/darkplaces.git] / gl_backend.c
index c5cd70aeade7815fb45b292462bcdb6301ec006a..f5117ecedb65f46bacc3a56ddcd377894bfdab9a 100644 (file)
@@ -1249,7 +1249,7 @@ CalcFov
 float CalcFov (float fov_x, float width, float height)
 {
        // calculate vision size and alter by aspect, then convert back to angle
-       return atan (height / (width / tan(fov_x/360*M_PI))) * 360 / M_PI;
+       return atan (((height/width)/vid_pixelaspect.value)*tan(fov_x/360.*M_PI))*360./M_PI; 
 }
 
 /*