From 9ff1f466d983d944131f148ca5a0f0988f03f19d Mon Sep 17 00:00:00 2001 From: curt Date: Fri, 18 Dec 1998 23:35:09 +0000 Subject: [PATCH] Converted to a simpler frame rate counting method. --- Cockpit/cockpit.cxx | 5 ++++- Cockpit/hud.cxx | 7 +++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/Cockpit/cockpit.cxx b/Cockpit/cockpit.cxx index 074111638..b5beb77cd 100644 --- a/Cockpit/cockpit.cxx +++ b/Cockpit/cockpit.cxx @@ -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. diff --git a/Cockpit/hud.cxx b/Cockpit/hud.cxx index 7f0815be7..47fd50a95 100644 --- a/Cockpit/hud.cxx +++ b/Cockpit/hud.cxx @@ -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. // -- 2.39.5