Warning fixes

This commit is contained in:
Robert Osfield
2013-11-22 10:27:15 +00:00
parent 91033a3a1f
commit f02ed3c629
4 changed files with 19 additions and 21 deletions

View File

@@ -712,14 +712,14 @@ InteractiveImageHandler::InteractiveImageHandler(osg::Image* image, osg::Texture
double width = _camera->getViewport()->width();
double height = _camera->getViewport()->height();
resize(width, height);
resize(static_cast<int>(width), static_cast<int>(height));
}
}
bool InteractiveImageHandler::mousePosition(osgViewer::View* view, osg::NodeVisitor* nv, const osgGA::GUIEventAdapter& ea, int& x, int &y) const
{
if (!view) return false;
osgUtil::LineSegmentIntersector::Intersections intersections;
bool foundIntersection = (nv==0) ? view->computeIntersections(ea, intersections) :
view->computeIntersections(ea, nv->getNodePath(), intersections);