the call to cairo_font_extents, but use out instead.
svn path=/trunk/mcs/; revision=81560
2007-07-07 Miguel de Icaza <miguel@novell.com>
+ * Mono.Cairo/Context.cs: Integrate Alp's patch to not use ref in
+ the call to cairo_font_extents, but use out instead.
+
* Integrate Alp's patch to rename CairoAPI NativeMethod, in
accordance to 2.7.1 framework guidelines.
internal static extern void cairo_fill_preserve (IntPtr cr);
[DllImport (cairo)]
- internal static extern void cairo_font_extents (IntPtr cr, ref FontExtents extents);
+ internal static extern void cairo_font_extents (IntPtr cr, out FontExtents extents);
// FontFace
[DllImport (cairo)]
public FontExtents FontExtents {
get {
-
- FontExtents f_extents = new FontExtents();
- NativeMethods.cairo_font_extents (state, ref f_extents);
+ FontExtents f_extents;
+ NativeMethods.cairo_font_extents (state, out f_extents);
return f_extents;
}
}