]> git.mxchange.org Git - flightgear.git/commitdiff
Change the fps toggle property name a bit and add a toggle switch in the
authorcurt <curt>
Mon, 14 Jun 2004 16:38:44 +0000 (16:38 +0000)
committercurt <curt>
Mon, 14 Jun 2004 16:38:44 +0000 (16:38 +0000)
gui/dialog/rendering box.

src/Cockpit/cockpit.cxx

index 5c23036c0a77d72198637559ff63aa63d3baccd6..70366cf407401c2bae53d359b4443efb24e8536e 100644 (file)
@@ -721,12 +721,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 );