diff --git a/cairo/Cairo.cs b/cairo/Cairo.cs index 3eb667a47..c0a5f2ab0 100644 --- a/cairo/Cairo.cs +++ b/cairo/Cairo.cs @@ -36,10 +36,7 @@ using System.Runtime.InteropServices; namespace Cairo { - public class CairoAPI { - - private CairoAPI () {} - + public static class CairoAPI { static public int Version { get { return Cairo.NativeMethods.cairo_version (); diff --git a/cairo/ImageSurface.cs b/cairo/ImageSurface.cs index d8c14a373..659833a7c 100644 --- a/cairo/ImageSurface.cs +++ b/cairo/ImageSurface.cs @@ -50,9 +50,11 @@ namespace Cairo { surfaces [surface] = this; } } - - [Obsolete ("Replaced by ctor (byte[] data, Cairo.Format format, int width, int height, int stride)")] - public ImageSurface (ref byte[] data, Cairo.Format format, int width, int height, int stride) : this (data, format, width, height, stride) {} + + [Obsolete ("Use ImageSurface (byte[] data, Cairo.Format format, int width, int height, int stride)")] + public ImageSurface (ref byte[] data, Cairo.Format format, int width, int height, int stride) :this (data, format, width, height, stride) + { + } public ImageSurface (byte[] data, Cairo.Format format, int width, int height, int stride) {