From Stephan Huber, "a recent submission added a 10.6-feature to GraphicsWindowCocoa. I added
some ifdefs around, so it compiles again with 10.5 SDK"
This commit is contained in:
parent
eb2e4d313a
commit
a0df35b580
@ -743,12 +743,20 @@ static NSRect convertToQuartzCoordinates(const NSRect& rect)
|
|||||||
|
|
||||||
#pragma mark GraphicsWindowCocoaDelegate
|
#pragma mark GraphicsWindowCocoaDelegate
|
||||||
|
|
||||||
|
#ifndef MAC_OS_X_VERSION_10_6
|
||||||
|
#define MAC_OS_X_VERSION_10_6 1060
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// ----------------------------------------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------------------------------------
|
||||||
// the window-delegate, handles moving/resizing of the window etc.
|
// the window-delegate, handles moving/resizing of the window etc.
|
||||||
// ----------------------------------------------------------------------------------------------------------
|
// ----------------------------------------------------------------------------------------------------------
|
||||||
|
|
||||||
@interface GraphicsWindowCocoaDelegate : NSObject <NSWindowDelegate>
|
@interface GraphicsWindowCocoaDelegate : NSObject
|
||||||
|
#if MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_6
|
||||||
|
<NSWindowDelegate>
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
@private
|
@private
|
||||||
osgViewer::GraphicsWindowCocoa* _win;
|
osgViewer::GraphicsWindowCocoa* _win;
|
||||||
|
Loading…
Reference in New Issue
Block a user