From 3bb9f4130576bb4f356b3e49fc73bc7d456d716d Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Sun, 13 Apr 2014 20:16:05 -0400 Subject: Fixed Mac OS X so that window sizes do not include the titlebar and frame. --- bleh_darwin.m | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bleh_darwin.m') 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 */ -- cgit v1.2.3