From: curt Date: Thu, 15 Dec 2005 22:18:06 +0000 (+0000) Subject: Remove the old hardcode fps display. This is now replaced with a nasal/gui X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=249a1264ff8ff127abdf424177c81231281b1ff8;p=flightgear.git Remove the old hardcode fps display. This is now replaced with a nasal/gui display that can be dragged around the screen to an unobtrusive location. --- diff --git a/src/Cockpit/cockpit.cxx b/src/Cockpit/cockpit.cxx index ce8d5d897..549a1f815 100644 --- a/src/Cockpit/cockpit.cxx +++ b/src/Cockpit/cockpit.cxx @@ -728,35 +728,6 @@ void fgCockpitUpdate( void ) { fgUpdateHUD(); } - if ( fgGetBool( "/sim/hud/draw-fps", false ) ) { - char buf[64]; - float fps = get_frame_rate(); - sprintf(buf,"%-5.1f", fps); - - glMatrixMode( GL_PROJECTION ); - glPushMatrix(); - glLoadIdentity(); - gluOrtho2D( 0, iwidth, 0, iheight ); - glMatrixMode( GL_MODELVIEW ); - glPushMatrix(); - glLoadIdentity(); - - glDisable( GL_DEPTH_TEST ); - glDisable( GL_LIGHTING ); - - glColor3f( 0.9, 0.4, 0.2 ); - - guiFnt.drawString( buf, - int(width - guiFnt.getStringWidth(buf) - 10), - 10 ); - glEnable( GL_DEPTH_TEST ); - glEnable( GL_LIGHTING ); - glMatrixMode( GL_PROJECTION ); - glPopMatrix(); - glMatrixMode( GL_MODELVIEW ); - glPopMatrix(); - } - glViewport( 0, 0, iwidth, iheight ); }