]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/FGEventHandler.cxx
Merge branch 'merge-requests/1555' into next
[flightgear.git] / src / Main / FGEventHandler.cxx
index 875da4b3fc469780210024cc5e331ef25381ff0a..562d807918ec13dc3729d5b32c70163109d50432 100644 (file)
@@ -39,7 +39,7 @@ FGEventHandler::FGEventHandler() :
     keyHandler(0),
     mouseClickHandler(0),
     mouseMotionHandler(0),
-    statsHandler(new osgViewer::StatsHandler),
+    statsHandler(new FGStatsHandler),
     statsEvent(new osgGA::GUIEventAdapter),
     statsType(osgViewer::StatsHandler::NO_STATS),
     currentModifiers(0),
@@ -242,6 +242,7 @@ bool FGEventHandler::handle(const osgGA::GUIEventAdapter& ea,
         CameraGroup::getDefault()->resized();
         if (resizable)
           globals->get_renderer()->resize(ea.getWindowWidth(), ea.getWindowHeight());
+        statsHandler->handle(ea, us);
       #ifdef SG_MAC
         // work around OSG Cocoa-Viewer issue with resize event handling,
         // where resize events are queued up, then dispatched in a batch, with