X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCockpit%2Fcockpit.cxx;h=97f844da90bd181a919d7136bfbad3e092deba73;hb=75747d35167cdf4586d32fc82d8c7dddd6bfeee9;hp=5c23036c0a77d72198637559ff63aa63d3baccd6;hpb=1fa0f4157cf1ed73463d68bcd2d4e7c97e960ca5;p=flightgear.git diff --git a/src/Cockpit/cockpit.cxx b/src/Cockpit/cockpit.cxx index 5c23036c0..97f844da9 100644 --- a/src/Cockpit/cockpit.cxx +++ b/src/Cockpit/cockpit.cxx @@ -29,7 +29,9 @@ # include #endif -#include +#include + +#include SG_GLU_H #include #include @@ -43,7 +45,9 @@ #include #include -#include +#ifdef ENABLE_SP_FMDS +#include +#endif #include
#include
#include
@@ -337,6 +341,7 @@ float get_anzg ( void ) return anzg; } +#ifdef ENABLE_SP_FMDS int get_iaux1 (void) { FGADA *fdm = (FGADA *)current_aircraft.fdm_state; @@ -516,7 +521,7 @@ float get_aux18 (void) FGADA *fdm = (FGADA *)current_aircraft.fdm_state; return fdm->get_faux(10); } -// #endif +#endif // $$$ end - added, VS Renganathan 13 Oct 2K @@ -721,12 +726,11 @@ void fgCockpitUpdate( void ) { // This will check the global hud linked list pointer. // If these is anything to draw it will. fgUpdateHUD(); - } else if ( fgGetBool( "/sim/hud/draw-fps-when-off", false ) ) { + } + + if ( fgGetBool( "/sim/hud/draw-fps", false ) ) { char buf[64]; - float fps = get_frame_rate(); -// float tris = fps * get_vfc_tris_drawn(); -// float culled = fps * get_vfc_tris_culled(); -// sprintf(buf,"%-4.1f %7.0f %7.0f", fps, tris, culled); + float fps = get_frame_rate(); sprintf(buf,"%-5.1f", fps); glMatrixMode( GL_PROJECTION );