summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Walzer <kw@codebykevin.com>2015-02-22 18:03:22 (GMT)
committerKevin Walzer <kw@codebykevin.com>2015-02-22 18:03:22 (GMT)
commitd1e97b3f659b03bad25cadb33011ff325b3b43a9 (patch)
tree2475ca7f12d9c8247bc911d78ef95bb06297d666
parentfdcfa0f0bcbffc5d51687d791e1377ade0577138 (diff)
downloadtk-d1e97b3f659b03bad25cadb33011ff325b3b43a9.zip
tk-d1e97b3f659b03bad25cadb33011ff325b3b43a9.tar.gz
tk-d1e97b3f659b03bad25cadb33011ff325b3b43a9.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 5d89105..5f782c5 100644
--- a/macosx/tkMacOSXWindowEvent.c
+++ b/macosx/tkMacOSXWindowEvent.c
@@ -849,7 +849,7 @@ ExposeRestrictProc(
- (void)viewDidEndLiveResize
{
- NSRect bounds = NSRectFromCGRect([self bounds]);
+ HIRect bounds = NSRectToCGRect([self bounds]);
HIShapeRef shape = HIShapeCreateWithRect(&bounds);
[self generateExposeEvents: shape];