Changeset 11476 for OpenSceneGraph/trunk/src/osgViewer/DarwinUtils.mm
- Timestamp:
- 05/28/10 17:56:43 (3 years ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/src/osgViewer/DarwinUtils.mm (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgViewer/DarwinUtils.mm
r11207 r11476 30 30 OSErr error = SetSystemUIMode(kUIModeAllHidden, kUIOptionAutoShowMenuBar); 31 31 if (error) { 32 osg::notify(osg::DEBUG_INFO)<< "MenubarToggler::hide failed with " << error << std::endl;32 OSG_DEBUG << "MenubarToggler::hide failed with " << error << std::endl; 33 33 } 34 34 } … … 39 39 OSErr error = SetSystemUIMode(kUIModeNormal, 0); 40 40 if (error) { 41 osg::notify(osg::DEBUG_INFO)<< "MenubarToggler::show failed with " << error << std::endl;41 OSG_DEBUG << "MenubarToggler::show failed with " << error << std::endl; 42 42 } 43 43 } … … 131 131 { 132 132 ++windowsIntersectingMainScreen; 133 // osg::notify(osg::ALWAYS)<< "testing rect " << windowBounds.origin.x << "/" << windowBounds.origin.y << " " << windowBounds.size.width << "x" << windowBounds.size.height << std::endl;134 // osg::notify(osg::ALWAYS)<< "against " << _availRect.origin.x << "/" << _availRect.origin.y << " " << _availRect.size.width << "x" << _availRect.size.height << std::endl;133 // OSG_ALWAYS << "testing rect " << windowBounds.origin.x << "/" << windowBounds.origin.y << " " << windowBounds.size.width << "x" << windowBounds.size.height << std::endl; 134 // OSG_ALWAYS << "against " << _availRect.origin.x << "/" << _availRect.origin.y << " " << _availRect.size.width << "x" << _availRect.size.height << std::endl; 135 135 // the window intersects the main-screen, does it intersect with the menubar/dock? 136 136 if (((_availRect.origin.y > _mainScreenBounds.origin.y) && (_availRect.origin.y > windowBounds.origin.y)) || … … 251 251 if( CGGetActiveDisplayList( 0, NULL, &_displayCount ) != CGDisplayNoErr ) 252 252 { 253 osg::notify(osg::WARN)<< "DarwinWindowingSystemInterface: could not get # of screens" << std::endl;253 OSG_WARN << "DarwinWindowingSystemInterface: could not get # of screens" << std::endl; 254 254 _displayCount = 0; 255 255 … … 262 262 if( CGGetActiveDisplayList( _displayCount, _displayIds, &_displayCount ) != CGDisplayNoErr ) 263 263 { 264 osg::notify(osg::WARN)<< "DarwinWindowingSystemInterface: CGGetActiveDisplayList failed" << std::endl;264 OSG_WARN << "DarwinWindowingSystemInterface: CGGetActiveDisplayList failed" << std::endl; 265 265 } 266 266 … … 275 275 if (_displayCount==0) 276 276 { 277 osg::notify(osg::WARN)<< "DarwinWindowingSystemInterface::getDisplayID(..) no valid screens available returning 0 instead." << std::endl;277 OSG_WARN << "DarwinWindowingSystemInterface::getDisplayID(..) no valid screens available returning 0 instead." << std::endl; 278 278 return 0; 279 279 } … … 285 285 else 286 286 { 287 osg::notify(osg::WARN)<< "DarwinWindowingSystemInterface::getDisplayID(..) invalid screen # " << si.screenNum << ", returning main-screen instead." << std::endl;287 OSG_WARN << "DarwinWindowingSystemInterface::getDisplayID(..) invalid screen # " << si.screenNum << ", returning main-screen instead." << std::endl; 288 288 return _displayIds[0]; 289 289 } … … 369 369 y = static_cast<int>(bounds.origin.y); 370 370 371 // osg::notify(osg::DEBUG_INFO)<< "topleft of screen " << si.screenNum <<" " << bounds.origin.x << "/" << bounds.origin.y << std::endl;371 // OSG_DEBUG << "topleft of screen " << si.screenNum <<" " << bounds.origin.x << "/" << bounds.origin.y << std::endl; 372 372 } 373 373
