summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-12-16 17:45:07 +0000
committerDavid Robillard <d@drobilla.net>2014-12-16 17:45:07 +0000
commitbaa3ed2b649252ef70e42e9242c95f495841cb1e (patch)
tree518d01d2ccd2a320cb67008cdf96a77487f835ef /src
parent4b1832ba51f1b6b722810a1fa83333ace84152da (diff)
downloadsuil-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.mm4
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));
}
}