From Mathias Froehlich, "I had a chance to look into the remote display problems.

The screen resolution was queried for the wrong display."
This commit is contained in:
Robert Osfield 2007-09-28 13:38:32 +00:00
parent 9aab68b140
commit 6eccf540e6

View File

@ -462,8 +462,10 @@ void View::setUpViewAcrossAllScreens()
for(unsigned int i=0; i<numScreens; ++i)
{
si.screenNum = i;
unsigned int width, height;
wsi->getScreenResolution(osg::GraphicsContext::ScreenIdentifier(i), width, height);
wsi->getScreenResolution(si, width, height);
translate_x += double(width) / (double(height) * aspectRatio);
}