Ignore:
Timestamp:
Nov 25, 2007, 6:50:53 PM (13 years ago)
Author:
Sam Hocevar
Message:
  • Added the various C# projects to the Visual Studio solution and slightly fixed the bindings so that they now work with the Microsoft CLR.
Location:
libcaca/trunk/csharp
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/csharp/Caca.cs

    r2059 r2065  
    194194    }
    195195
    196     public unsafe class CacaDisplay : IDisposable
     196    public class CacaDisplay : IDisposable
    197197    {
    198198        private IntPtr _cv;
  • libcaca/trunk/csharp/Cucul.cs

    r2058 r2065  
    5757    }
    5858
    59     public unsafe class CuculCanvas : IDisposable
     59    public class CuculCanvas : IDisposable
    6060    {
    6161        public readonly IntPtr _cv;
     
    404404                                object data)
    405405        {
    406             GCHandle gch = GCHandle.Alloc(data);
     406            GCHandle gch = GCHandle.Alloc(data, GCHandleType.Pinned);
    407407            int ret = cucul_dither_bitmap(_cv, x, y, w, h, d._dither,
    408408                                          gch.AddrOfPinnedObject());
     
    412412    }
    413413
    414     public unsafe class CuculAttr
     414    public class CuculAttr
    415415    {
    416416        private int _attr;
     
    446446    }
    447447
    448     public unsafe class CuculDither : IDisposable
     448    public class CuculDither : IDisposable
    449449    {
    450450        public readonly IntPtr _dither;
Note: See TracChangeset for help on using the changeset viewer.