From baa3ed2b649252ef70e42e9242c95f495841cb1e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 16 Dec 2014 17:45:07 +0000 Subject: Fix compilation on OSX 10.6 (#988). git-svn-id: http://svn.drobilla.net/lad/trunk/suil@5494 a436a847-0d15-0410-975c-d299462d15a1 --- src/cocoa_in_gtk2.mm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/cocoa_in_gtk2.mm b/src/cocoa_in_gtk2.mm index 42d1cd2..2ab0f66 100644 --- a/src/cocoa_in_gtk2.mm +++ b/src/cocoa_in_gtk2.mm @@ -116,8 +116,8 @@ suil_cocoa_size_request(GtkWidget* widget, GtkRequisition* requisition) } else { NSView* view = (NSView*)self->instance->ui_widget; NSRect frame = [view frame]; - requisition->width = CGRectGetWidth(frame); - requisition->height = CGRectGetHeight(frame); + requisition->width = CGRectGetWidth(NSRectToCGRect(frame)); + requisition->height = CGRectGetHeight(NSRectToCGRect(frame)); } } -- cgit v1.2.1