From 01b5bf97f457f67dc00b4982859c253bc976a048 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sat, 10 Oct 2009 09:20:39 +0000 Subject: [PATCH] From Bob Kuehne, "fix for 10.6/darwin: this fix changes what i believe to be a typo in the os x darwinutils file from ID to id, the proper objective-c name for a type." --- src/osgViewer/DarwinUtils.mm | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/src/osgViewer/DarwinUtils.mm b/src/osgViewer/DarwinUtils.mm index f8d59f7d3..fa909d09e 100755 --- a/src/osgViewer/DarwinUtils.mm +++ b/src/osgViewer/DarwinUtils.mm @@ -16,8 +16,8 @@ } --(void) show: (ID) data; --(void) hide: (ID) data; +-(void) show: (id) data; +-(void) hide: (id) data; @end @@ -25,7 +25,7 @@ --(void) hide:(ID) data +-(void) hide:(id) data { OSErr error = SetSystemUIMode(kUIModeAllHidden, kUIOptionAutoShowMenuBar); if (error) { @@ -34,7 +34,7 @@ } --(void) show:(ID) data +-(void) show:(id) data { OSErr error = SetSystemUIMode(kUIModeNormal, 0); if (error) { @@ -281,8 +281,8 @@ void DarwinWindowingSystemInterface::enumerateScreenSettings(const osg::Graphics // Warning! This method has not been tested. resolutionList.clear(); - CGDirectDisplayID displayID = getDisplayID(screenIdentifier); - CFArrayRef availableModes = CGDisplayAvailableModes(displayID); + CGDirectDisplayID displayid = getDisplayID(screenIdentifier); + CFArrayRef availableModes = CGDisplayAvailableModes(displayid); unsigned int numberOfAvailableModes = CFArrayGetCount(availableModes); for (unsigned int i=0; i