summaryrefslogtreecommitdiffstats
path: root/macosx/tkMacOSXSubwindows.c
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2014-07-25 17:04:07 (GMT)
committerKevin Walzer <kw@codebykevin.com>2014-07-25 17:04:07 (GMT)
commit42ed9ac756fe0fedb878602d401c858c0117ea22 (patch)
tree383196bd9a75a5289049ae9ffdac57679a1ed1d0 /macosx/tkMacOSXSubwindows.c
parentcf01a3d41c96d1af1d386e10947da402d4a43767 (diff)
downloadtk-42ed9ac756fe0fedb878602d401c858c0117ea22.zip
tk-42ed9ac756fe0fedb878602d401c858c0117ea22.tar.gz
tk-42ed9ac756fe0fedb878602d401c858c0117ea22.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.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/macosx/tkMacOSXSubwindows.c b/macosx/tkMacOSXSubwindows.c
index 915dea1..ac055e3 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);