diff options
| author | Pietro Gagliardi <[email protected]> | 2014-05-15 21:45:42 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-05-15 21:45:42 -0400 |
| commit | 31fc77a99df84e334e97cb6718a3f45fa097d2b4 (patch) | |
| tree | 1b61f0d52dc25869b253cab5f5da1f5b2a2e502a /bleh_darwin.m | |
| parent | 82101036b8b2686ec0394908434629ab6a0b9903 (diff) | |
Removed the event point translation from bleh_darwin.m and rewrote it in Objective-C in area_darwin.m.
Diffstat (limited to 'bleh_darwin.m')
| -rw-r--r-- | bleh_darwin.m | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/bleh_darwin.m b/bleh_darwin.m index ca98ffd..331e2ca 100644 --- a/bleh_darwin.m +++ b/bleh_darwin.m @@ -151,24 +151,3 @@ void drawImage(void *pixels, int64_t width, int64_t height, int64_t stride, int6 nil); /* hints: */ objc_msgSend(bitmap, s_release); } - -/* -more NSPoint fumbling -*/ - -static NSPoint (*objc_msgSend_stret_point)(id, SEL, ...) = - (NSPoint (*)(id, SEL, ...)) objc_msgSend; - -struct xpoint getTranslatedEventPoint(id self, id event) -{ - NSPoint p; - struct xpoint ret; - - p = objc_msgSend_stret_point(event, s_locationInWindow); - p = objc_msgSend_stret_point(self, s_convertPointFromView, - p, /* convertPoint: */ - nil); /* fromView: */ - ret.x = (int64_t) p.x; - ret.y = (int64_t) p.y; - return ret; -} |
