]> git.mxchange.org Git - flightgear.git/commitdiff
Make the onscreen fps display toggleable via a boolean property.
authorcurt <curt>
Mon, 14 Jun 2004 16:25:32 +0000 (16:25 +0000)
committercurt <curt>
Mon, 14 Jun 2004 16:25:32 +0000 (16:25 +0000)
src/Cockpit/cockpit.cxx

index eaaafa60315bcb75ccde0892080504b5d8f90d7b..5c23036c0a77d72198637559ff63aa63d3baccd6 100644 (file)
@@ -721,12 +721,7 @@ void fgCockpitUpdate( void ) {
         // This will check the global hud linked list pointer.
         // If these is anything to draw it will.
         fgUpdateHUD();
-    }
-
-#define DISPLAY_COUNTER
-#ifdef DISPLAY_COUNTER
-    else
-    {
+    } else if ( fgGetBool( "/sim/hud/draw-fps-when-off", false ) ) {
         char buf[64];
         float fps    =       get_frame_rate();
 //      float tris   = fps * get_vfc_tris_drawn();
@@ -757,7 +752,6 @@ void fgCockpitUpdate( void ) {
         glMatrixMode( GL_MODELVIEW );
         glPopMatrix();
     }
-#endif // #ifdef DISPLAY_COUNTER
     
     glViewport( 0, 0, iwidth, iheight );
 }