summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2015-02-22 18:03:41 (GMT)
committerKevin Walzer <kw@codebykevin.com>2015-02-22 18:03:41 (GMT)
commitb4c8b7030528c756f79673b9511327918950afb7 (patch)
treecb1e5bc22c5d833e81b191b5d4f6bf4334dcd6a5
parent3a13bc5fac2d59e87c18e58d621b9f0631141f04 (diff)
downloadtk-b4c8b7030528c756f79673b9511327918950afb7.zip
tk-b4c8b7030528c756f79673b9511327918950afb7.tar.gz
tk-b4c8b7030528c756f79673b9511327918950afb7.tar.bz2
Fix for CGRect/NSRect confusion
-rw-r--r--macosx/tkMacOSXWindowEvent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/macosx/tkMacOSXWindowEvent.c b/macosx/tkMacOSXWindowEvent.c
index 4e51dbf..3233b37 100644
--- a/macosx/tkMacOSXWindowEvent.c
+++ b/macosx/tkMacOSXWindowEvent.c
@@ -853,7 +853,7 @@ ExposeRestrictProc(
- (void)viewDidEndLiveResize
{
- NSRect bounds = NSRectFromCGRect([self bounds]);
+ HIRect bounds = NSRectToCGRect([self bounds]);
HIShapeRef shape = HIShapeCreateWithRect(&bounds);
[self generateExposeEvents: shape];