diff options
| author | Pietro Gagliardi <[email protected]> | 2014-05-16 09:13:11 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-05-16 09:13:11 -0400 |
| commit | a9717bfb4fd6627d51dfc07c35f393f0a93368ff (patch) | |
| tree | e9b2eaa2c979f45a829187343676fc5efae02eff /area_darwin.m | |
| parent | acc4a543566550ed563887a5827735596a5d816c (diff) | |
Organized the dummyRect declarations/definitions/etc. in the Objective-C files. I think that's it for the Objective-C conversion of the Mac OS X code!
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) |
