X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FMain%2FFGEventHandler.cxx;h=e4d1d104308c8cb478b9d7280256286276822d52;hb=18d1593c42c2df60d7fb44ace722ca3e8a7fd82c;hp=56dcb564cf51eb5f023a7a4a2077b2d1fe2ef515;hpb=4f4434787fb40e02a35b401171f2a7370e0d5463;p=flightgear.git diff --git a/src/Main/FGEventHandler.cxx b/src/Main/FGEventHandler.cxx index 56dcb564c..e4d1d1043 100644 --- a/src/Main/FGEventHandler.cxx +++ b/src/Main/FGEventHandler.cxx @@ -147,10 +147,6 @@ bool FGEventHandler::handle(const osgGA::GUIEventAdapter& ea, switch (ea.getEventType()) { case osgGA::GUIEventAdapter::FRAME: - if (idleHandler) - (*idleHandler)(); - if (drawHandler) - (*drawHandler)(); mouseWarped = false; handleStats(us); return true; @@ -217,6 +213,7 @@ bool FGEventHandler::handle(const osgGA::GUIEventAdapter& ea, (*mouseMotionHandler)(x, y); return true; case osgGA::GUIEventAdapter::RESIZE: + CameraGroup::getDefault()->resized(); if (resizable && windowResizeHandler) (*windowResizeHandler)(ea.getWindowWidth(), ea.getWindowHeight()); return true;