diff options
-rw-r--r-- | NEWS | 2 | ||||
-rw-r--r-- | src/cocoa_in_gtk2.mm | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -5,7 +5,7 @@ suil (0.8.3) unstable; * Fix compilation with -Wl,--no-undefined * Fix a few minor/unlikely memory errors - -- David Robillard <d@drobilla.net> Mon, 17 Nov 2014 01:44:25 -0500 + -- David Robillard <d@drobilla.net> 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)); } } |