diff options
author | Kevin Walzer <kw@codebykevin.com> | 2014-07-25 17:04:07 (GMT) |
---|---|---|
committer | Kevin Walzer <kw@codebykevin.com> | 2014-07-25 17:04:07 (GMT) |
commit | 4378699be9a04249759f926c0d4acc0f78877ac4 (patch) | |
tree | 383196bd9a75a5289049ae9ffdac57679a1ed1d0 /macosx/tkMacOSXWindowEvent.c | |
parent | 4d8bbf6d4707962c0fa47d884126554c0deed0ad (diff) | |
download | tk-4378699be9a04249759f926c0d4acc0f78877ac4.zip tk-4378699be9a04249759f926c0d4acc0f78877ac4.tar.gz tk-4378699be9a04249759f926c0d4acc0f78877ac4.tar.bz2 |
Add copyright notice to Marc Culler for extensive patch to alpha rendering on Mac/Cocoa; remove private API calls to comply with platform requirements.
Diffstat (limited to 'macosx/tkMacOSXWindowEvent.c')
-rw-r--r-- | macosx/tkMacOSXWindowEvent.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/macosx/tkMacOSXWindowEvent.c b/macosx/tkMacOSXWindowEvent.c index 87504b3..e6e27a4 100644 --- a/macosx/tkMacOSXWindowEvent.c +++ b/macosx/tkMacOSXWindowEvent.c @@ -808,6 +808,8 @@ ExposeRestrictProc( NSWindow *w = [self window]; + //remove private API calls here: not needed on systems >= 10.7 + #if 0 if ([self isOpaque] && [w showsResizeIndicator]) { NSRect bounds = [self convertRect:[w _growBoxRect] fromView:nil]; @@ -815,6 +817,7 @@ ExposeRestrictProc( NSEraseRect(bounds); } } + #endif CGFloat height = [self bounds].size.height; HIMutableShapeRef drawShape = HIShapeCreateMutable(); @@ -948,6 +951,9 @@ ExposeRestrictProc( @end +/*Remove private/non-documented API calls. This is strongly discouraged by Apple and may lead to breakage in the future.*/ + +#if 0 #pragma mark TKContentViewPrivate /* @@ -956,6 +962,7 @@ ExposeRestrictProc( * Overrides NSView internals. */ + @interface TKContentView(TKContentViewPrivate) - (id) initWithFrame: (NSRect) frame; - (void) _setAsideSubviews; @@ -1094,6 +1101,9 @@ ExposeRestrictProc( } @end +#endif + + /* * Local Variables: |