Added use of SingleWindow for when only one screen is used

This commit is contained in:
Robert Osfield
2013-05-21 09:44:26 +00:00
parent 455ebbc5f1
commit 9f66a10aa2
3 changed files with 8 additions and 52 deletions

View File

@@ -452,7 +452,7 @@ void View::apply(ViewConfig* config)
{
if (config)
{
OSG_NOTICE<<"Applying osgViewer::ViewConfig : "<<config->className()<<std::endl;
OSG_INFO<<"Applying osgViewer::ViewConfig : "<<config->className()<<std::endl;
config->configure(*this);
}
_lastAppliedViewConfig = config;
@@ -1413,9 +1413,9 @@ void View::assignStereoOrKeystoneToCamera(osg::Camera* camera, osg::DisplaySetti
// set up view's main camera
{
double height = osg::DisplaySettings::instance()->getScreenHeight();
double width = osg::DisplaySettings::instance()->getScreenWidth();
double distance = osg::DisplaySettings::instance()->getScreenDistance();
double height = ds->getScreenHeight();
double width = ds->getScreenWidth();
double distance = ds->getScreenDistance();
double vfov = osg::RadiansToDegrees(atan2(height/2.0f,distance)*2.0);
camera->setProjectionMatrixAsPerspective( vfov, width/height, 1.0f,10000.0f);