]> git.mxchange.org Git - flightgear.git/commitdiff
Converted to a simpler frame rate counting method.
authorcurt <curt>
Fri, 18 Dec 1998 23:35:09 +0000 (23:35 +0000)
committercurt <curt>
Fri, 18 Dec 1998 23:35:09 +0000 (23:35 +0000)
Cockpit/cockpit.cxx
Cockpit/hud.cxx

index 0741116389bdf7838ea7b2392c097d298a36aa36..b5beb77cd6ff35c3e3adde10c5df16f3034abfab 100644 (file)
@@ -217,7 +217,7 @@ double get_sideslip( void )
 
 double get_frame_rate( void )
 {
-    return general.frame_rate;
+    return (double) general.frame_rate;
 }
 
 double get_fov( void )
@@ -303,6 +303,9 @@ void fgCockpitUpdate( void ) {
 
 
 // $Log$
+// Revision 1.27  1998/12/18 23:35:09  curt
+// Converted to a simpler frame rate counting method.
+//
 // Revision 1.26  1998/12/09 18:50:19  curt
 // Converted "class fgVIEW" to "class FGView" and updated to make data
 // members private and make required accessor functions.
index 7f0815be7bfe772bd63706117f48ca83d6fe426c..47fd50a95065c8b4d41326deac1b264f7b22b55e 100644 (file)
@@ -454,7 +454,7 @@ int fgHUDInit( fgAIRCRAFT * /* current_aircraft */ )
                                                 60,
                                                 10,
                                                  get_frame_rate,
-                                                "%.1f",
+                                                "%.0f",
                                                 "Frame rate = ",
                                                 NULL,
                                                  1.0,
@@ -558,7 +558,7 @@ int fgHUDInit2( fgAIRCRAFT * /* current_aircraft */ )
 
     p = new instr_label( 10, 10, 60, 10,
                         get_frame_rate,
-                        "%.1f",
+                        "%.0f",
                         "Frame rate = ",
                         NULL,
                         1.0,
@@ -840,6 +840,9 @@ void fgUpdateHUD( void ) {
 }
 
 // $Log$
+// Revision 1.29  1998/12/18 23:35:10  curt
+// Converted to a simpler frame rate counting method.
+//
 // Revision 1.28  1998/11/23 21:48:59  curt
 // Borland portability tweaks.
 //