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)
commit0530b1d9750ba0dbda0574ad8c64f5defc0d8c5f (patch)
treee3dd3c28103e5d00a44110026b92784d6df5832a
parent15adba7a5862a2893c200dab271db00f8bd5578d (diff)
downloadtk-0530b1d9750ba0dbda0574ad8c64f5defc0d8c5f.zip
tk-0530b1d9750ba0dbda0574ad8c64f5defc0d8c5f.tar.gz
tk-0530b1d9750ba0dbda0574ad8c64f5defc0d8c5f.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];