diff options
author | Kevin Walzer <kw@codebykevin.com> | 2014-07-25 17:04:32 (GMT) |
---|---|---|
committer | Kevin Walzer <kw@codebykevin.com> | 2014-07-25 17:04:32 (GMT) |
commit | 70e46f4111270421e799c112aa766a9f71a6d18e (patch) | |
tree | a56d353223531ad17562e901c4fc7a5163124835 /macosx/tkMacOSXSubwindows.c | |
parent | c14530201df3f512c68f49728a3b8fcd2755bfcc (diff) | |
download | tk-70e46f4111270421e799c112aa766a9f71a6d18e.zip tk-70e46f4111270421e799c112aa766a9f71a6d18e.tar.gz tk-70e46f4111270421e799c112aa766a9f71a6d18e.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/tkMacOSXSubwindows.c')
-rw-r--r-- | macosx/tkMacOSXSubwindows.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/macosx/tkMacOSXSubwindows.c b/macosx/tkMacOSXSubwindows.c index 29bc4a3..3dfd308 100644 --- a/macosx/tkMacOSXSubwindows.c +++ b/macosx/tkMacOSXSubwindows.c @@ -743,11 +743,12 @@ TkMacOSXUpdateClipRgn( NSWindow *w = TkMacOSXDrawableWindow(winPtr->window); if (w) { - bounds = NSRectToCGRect([w _growBoxRect]); - bounds.origin.y = [w contentRectForFrameRect: - [w frame]].size.height - bounds.size.height - - bounds.origin.y; - ChkErr(TkMacOSHIShapeDifferenceWithRect, rgn, &bounds); + // This call to private API not needed on systems >= 10.7 + // bounds = NSRectToCGRect([w _growBoxRect]); + // bounds.origin.y = [w contentRectForFrameRect: + // [w frame]].size.height - bounds.size.height - + // bounds.origin.y; + // ChkErr(TkMacOSHIShapeDifferenceWithRect, rgn, &bounds); } } macWin->aboveVisRgn = HIShapeCreateCopy(rgn); |