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 --- NEWS | 2 +- src/cocoa_in_gtk2.mm | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/NEWS b/NEWS index 4e8fca7..58e2421 100644 --- a/NEWS +++ b/NEWS @@ -5,7 +5,7 @@ suil (0.8.3) unstable; * Fix compilation with -Wl,--no-undefined * Fix a few minor/unlikely memory errors - -- David Robillard Mon, 17 Nov 2014 01:44:25 -0500 + -- David Robillard Tue, 16 Dec 2014 12:44:44 -0500 suil (0.8.2) stable; 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