Revert a couple files to mono master
* cairo/Cairo.cs: make a static class like master * cairo/ImageSurface.cs: revert obsolete warning and ws changes
This commit is contained in:
parent
9a2fd72001
commit
6647c2609c
2 changed files with 6 additions and 7 deletions
|
@ -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 ();
|
||||
|
|
|
@ -51,8 +51,10 @@ namespace Cairo {
|
|||
}
|
||||
}
|
||||
|
||||
[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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue