diff options
author | David Robillard <d@drobilla.net> | 2014-12-16 17:45:07 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-12-16 17:45:07 +0000 |
commit | baa3ed2b649252ef70e42e9242c95f495841cb1e (patch) | |
tree | 518d01d2ccd2a320cb67008cdf96a77487f835ef /src | |
parent | 4b1832ba51f1b6b722810a1fa83333ace84152da (diff) | |
download | suil-baa3ed2b649252ef70e42e9242c95f495841cb1e.tar.gz suil-baa3ed2b649252ef70e42e9242c95f495841cb1e.tar.bz2 suil-baa3ed2b649252ef70e42e9242c95f495841cb1e.zip |
Fix compilation on OSX 10.6 (#988).
git-svn-id: http://svn.drobilla.net/lad/trunk/suil@5494 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src')
-rw-r--r-- | src/cocoa_in_gtk2.mm | 4 |
1 files changed, 2 insertions, 2 deletions
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)); } } |