summaryrefslogtreecommitdiff
path: root/bleh_darwin.m
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-04-13 20:16:05 -0400
committerPietro Gagliardi <[email protected]>2014-04-13 20:16:05 -0400
commit3bb9f4130576bb4f356b3e49fc73bc7d456d716d (patch)
treea33b9e523b2f560446b7bcc7f3d58ef6b43c29cd /bleh_darwin.m
parentfb50badf00db0ba2da8a99aa75b489c620f8a971 (diff)
Fixed Mac OS X so that window sizes do not include the titlebar and frame.
Diffstat (limited to 'bleh_darwin.m')
-rw-r--r--bleh_darwin.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/bleh_darwin.m b/bleh_darwin.m
index f21d55c..b537603 100644
--- a/bleh_darwin.m
+++ b/bleh_darwin.m
@@ -172,6 +172,11 @@ struct xsize objc_msgSend_stret_size_noargs(id obj, SEL sel)
return t;
}
+id objc_msgSend_size(id obj, SEL sel, int64_t width, int64_t height)
+{
+ return objc_msgSend(obj, sel, NSMakeSize((CGFloat) width, (CGFloat) height));
+}
+
/*
and again for NSPoint
*/