Compile fixes for VS7.1

This commit is contained in:
Robert Osfield
2005-11-10 09:42:34 +00:00
parent 802e40052d
commit 20d9c3c3c4
6 changed files with 64 additions and 11 deletions

View File

@@ -98,7 +98,11 @@ class OSGUTIL_EXPORT SceneView : public osg::Referenced, public osg::CullSetting
/** Get the viewport of the scene view. */
void getViewport(int& x,int& y,int& width,int& height) const
{
if (_camera->getViewport()!=0) _camera->getViewport()->getViewport(x,y,width,height);
if (_camera->getViewport()!=0)
_camera->getViewport()->getViewport(x,y,width,height);
else
x = y = width = height = 0;
}
/** Set the DisplaySettings. */