]> git.mxchange.org Git - flightgear.git/blobdiff - src/Cockpit/hud_ladr.cxx
Yank out all the glut dependencies and concentrate them in a (easily
[flightgear.git] / src / Cockpit / hud_ladr.cxx
index 09c0ee871054bc1117b2aaba19261b319bcd88b9..edc4043c2355142d12c2fdf593fb4f75b1b3f7fc 100644 (file)
@@ -251,12 +251,12 @@ void HudLadder :: draw( void )
        }
 
        xvvr = (((atan2(Vyy,Vxx)*SGD_RADIANS_TO_DEGREES)-psi)*
-               (factor/globals->get_current_view()->get_win_ratio()));
+               (factor/globals->get_current_view()->get_aspect_ratio()));
        drift = ((atan2(Vyy,Vxx)*SGD_RADIANS_TO_DEGREES)-psi);
        yvvr = ((actslope - pitch_value)*factor);
        vel_y = ((actslope -pitch_value) * cos(roll_value) + drift*sin(roll_value))*factor;
        vel_x = (-(actslope -pitch_value)*sin(roll_value) + drift*cos(roll_value))*
-               (factor/globals->get_current_view()->get_win_ratio());
+               (factor/globals->get_current_view()->get_aspect_ratio());
        //  printf("%f %f %f %f\n",vel_x,vel_y,drift,psi);
        //****************************************************************    
        // OBJECT MOVING RETICLE
@@ -813,8 +813,7 @@ drawNadir(float xfirst, float xlast, float yvalue)
 
 
                float r = 7.5;
-               float ang,temp;
-               float x1,y1,x2,y2,xcent,ycent;
+               float x1,y1,x2,y2;
 
        
         // to draw a circle