Changeset 10208 for OpenSceneGraph/trunk/src/osgViewer/DarwinUtils.mm
- Timestamp:
- 05/14/09 17:34:15 (4 years ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/src/osgViewer/DarwinUtils.mm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgViewer/DarwinUtils.mm
r9895 r10208 249 249 250 250 251 bool DarwinWindowingSystemInterface::setScreenSettings(const osg::GraphicsContext::ScreenIdentifier &si, const osg::GraphicsContext::ScreenSettings & settings) 252 { 253 bool result = setScreenResolutionImpl(si, settings.width, settings.height); 254 if (result) 255 setScreenRefreshRateImpl(si, settings.refreshRate); 256 257 return result; 258 } 259 260 251 261 252 262 /** implementation of setScreenResolution */ 253 bool DarwinWindowingSystemInterface::setScreenResolution (const osg::GraphicsContext::ScreenIdentifier& screenIdentifier, unsigned int width, unsigned int height)263 bool DarwinWindowingSystemInterface::setScreenResolutionImpl(const osg::GraphicsContext::ScreenIdentifier& screenIdentifier, unsigned int width, unsigned int height) 254 264 { 255 265 CGDirectDisplayID displayID = getDisplayID(screenIdentifier); … … 271 281 272 282 /** implementation of setScreenRefreshRate */ 273 bool DarwinWindowingSystemInterface::setScreenRefreshRate (const osg::GraphicsContext::ScreenIdentifier& screenIdentifier, double refreshRate) {283 bool DarwinWindowingSystemInterface::setScreenRefreshRateImpl(const osg::GraphicsContext::ScreenIdentifier& screenIdentifier, double refreshRate) { 274 284 275 285 boolean_t success(false);
