Warning fix

This commit is contained in:
Robert Osfield
2007-06-04 15:05:59 +00:00
parent 8a38f80443
commit 1f2cfa91c3

View File

@@ -495,8 +495,8 @@ struct OSXCarbonWindowingSystemInterface : public osg::GraphicsContext::Windowin
/** return the top left coord of a specific screen in global screen space */
void getScreenTopLeft(const osg::GraphicsContext::ScreenIdentifier& si, int& x, int& y) {
CGRect bounds = CGDisplayBounds( getDisplayID(si) );
x = bounds.origin.x;
y = bounds.origin.y;
x = static_cast<int>(bounds.origin.x);
y = static_cast<int>(bounds.origin.y);
// osg::notify(osg::DEBUG_INFO) << "topleft of screen " << si.screenNum <<" " << bounds.origin.x << "/" << bounds.origin.y << std::endl;
}