diff --git a/src/Gui/Quarter/SoQTQuarterAdaptor.cpp b/src/Gui/Quarter/SoQTQuarterAdaptor.cpp index ea21839b1..ae13f4680 100644 --- a/src/Gui/Quarter/SoQTQuarterAdaptor.cpp +++ b/src/Gui/Quarter/SoQTQuarterAdaptor.cpp @@ -605,4 +605,4 @@ void SIM::Coin3D::Quarter::SoQTQuarterAdaptor::printString(const char * s) n = strlen(s); for (i = 0; i < n; i++) glBitmap(8, 12, 0.0, 2.0, 10.0, 0.0, fps2dfont[s[i] - 32]); -} \ No newline at end of file +} diff --git a/src/Gui/View3DInventorViewer.cpp b/src/Gui/View3DInventorViewer.cpp index 213dcfbd7..1b511efba 100644 --- a/src/Gui/View3DInventorViewer.cpp +++ b/src/Gui/View3DInventorViewer.cpp @@ -1376,11 +1376,13 @@ void View3DInventorViewer::renderScene(void) (*it)->paintGL(); //fps rendering - if(fpsEnabled) { - std::stringstream stream; - stream << renderTime << " ms / " << 1000./renderTime << " fps"; - draw2DString(stream.str().c_str(), SbVec2s(10,10), SbVec2f(0.1,0.1)); - }; + if (fpsEnabled) { + std::stringstream stream; + stream.precision(1); + stream.setf(std::ios::fixed | std::ios::showpoint); + stream << renderTime << " ms / " << 1000./renderTime << " fps"; + draw2DString(stream.str().c_str(), SbVec2s(10,10), SbVec2f(0.1f,0.1f)); + } #if 0 // this breaks highlighting of edges glEnable(GL_LIGHTING);