]> Pileus Git - grits/blobdiff - src/grits-opengl.c
Correct FOV_DIST and MPPX calculations
[grits] / src / grits-opengl.c
index 3d7b7dd12a718ddf6bac02c83509e2c5df706f8e..5bf1710b9f172d1f0b55e6b6e7979e58d4eac401 100644 (file)
@@ -74,7 +74,7 @@ static void _set_visuals(GritsOpenGL *opengl)
 
        grits_viewer_get_location(GRITS_VIEWER(opengl), &lat, &lon, &elev);
        glViewport(0, 0, width, height);
-       gluPerspective(rad2deg(ang)*2, width/height, near, far);
+       gluPerspective(rad2deg(ang), width/height, near, far);
 
        /* Setup camera and lighting */
        glMatrixMode(GL_MODELVIEW);