diff options
Diffstat (limited to 'area_darwin.m')
| -rw-r--r-- | area_darwin.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/area_darwin.m b/area_darwin.m index 6c58910..a34dcdb 100644 --- a/area_darwin.m +++ b/area_darwin.m @@ -17,6 +17,8 @@ #define toNSUInteger(x) ((NSUInteger) (x)) #define fromNSUInteger(x) ((uintptr_t) (x)) +extern NSRect dummyRect; + @interface areaView : NSView { NSTrackingArea *trackingArea; } @@ -103,7 +105,7 @@ keyEvent(flagsChanged, areaView_flagsChanged) id makeArea(void) { return [[areaView alloc] - initWithFrame:NSMakeRect(0, 0, 100, 100)]; + initWithFrame:dummyRect]; } void drawImage(void *pixels, intptr_t width, intptr_t height, intptr_t stride, intptr_t xdest, intptr_t ydest) |
