Added reset of the event windowSize
This commit is contained in:
@@ -157,6 +157,9 @@ void KeyboardMouseCallback::updateWindowSize()
|
||||
maxY = osg::maximum(maxY,ir.bottom());
|
||||
maxY = osg::maximum(maxY,ir.bottom()+ir.height());
|
||||
}
|
||||
|
||||
// osg::notify(osg::NOTICE)<<"IA ea->setWindowSize("<<minX<<","<<minY<<","<<maxX<<","<<maxY<<")"<<std::endl;
|
||||
|
||||
ea->setWindowSize(minX,minY,maxX,maxY);
|
||||
}
|
||||
else if (rs)
|
||||
@@ -170,6 +173,8 @@ void KeyboardMouseCallback::updateWindowSize()
|
||||
float minY = osg::minimum(ir.bottom(),ir.bottom()+ir.height());
|
||||
float maxY = osg::maximum(ir.bottom(),ir.bottom()+ir.height());
|
||||
|
||||
// osg::notify(osg::NOTICE)<<"RS ea->setWindowSize("<<minX<<","<<minY<<","<<maxX<<","<<maxY<<")"<<std::endl;
|
||||
|
||||
ea->setWindowSize(minX,minY,maxX,maxY);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user