indeed ! i think i found the problem -> NativeBMAP.cs contains a wrong member .... currently it is (I'll make a new version of the wrapper available asap):
Code:
namespace AcknexWrapper
{
namespace Native
{
[StructLayout(LayoutKind.Sequential)]
internal struct NativeBMAP
{
public NativeC_LINK link;
public int width, height;
public int bytespp;
public IntPtr ptr;
public IntPtr pixels;
public int flags;
public IntPtr d3dtex;
public double u1, v1, u2, v2;
public int u, v;
public int refcount;
public int finalwidth, finalheight, finalbytespp;
public int pitch, finalpitch;
public int miplevels;
public int finalformat;
public IntPtr finalbits;
}
}
}
but it should be ... (and it works that way - thus the value changes correctly it seems when locking and unlocking...)
Code:
namespace AcknexWrapper
{
namespace Native
{
[StructLayout(LayoutKind.Sequential)]
internal struct NativeBMAP
{
public NativeC_LINK link;
public int width, height;
public int bytespp;
public IntPtr ptr;
public IntPtr pixels;
public int flags;
public IntPtr d3dtex;
public float u1, v1, u2, v2;
public int u, v;
public int refcount;
public int finalwidth, finalheight, finalbytespp;
public int pitch, finalpitch;
public int miplevels;
public int finalformat;
public IntPtr finalbits;
}
}
}
sorry for the hassle ! it was a stupid mistake on my part -.-