[OpenTK] Renamed x/y to hotx/hoty

The new name matches their functionality closer.
This commit is contained in:
thefiddler 2014-04-30 08:44:48 +02:00
parent 890805f2ae
commit 965c8baa7f

View file

@ -48,24 +48,24 @@ namespace OpenTK
} }
// Todo: make public when byte-order issues are resolved // Todo: make public when byte-order issues are resolved
public MouseCursor(byte[] argb, int width, int height, int x, int y) public MouseCursor(byte[] argb, int width, int height, int hotx, int hoty)
: base(argb, width, height) : base(argb, width, height)
{ {
if (x < 0 || x >= Width || y < 0 || y >= Height) if (hotx < 0 || hotx >= Width || hoty < 0 || hoty >= Height)
throw new ArgumentOutOfRangeException(); throw new ArgumentOutOfRangeException();
this.x = x; x = xhot;
this.y = y; y = hoty;
} }
public MouseCursor(IntPtr argb, int width, int height, int x, int y) public MouseCursor(IntPtr argb, int width, int height, int hotx, int hoty)
: base(argb, width, height) : base(argb, width, height)
{ {
if (x < 0 || x >= Width || y < 0 || y >= Height) if (hotx < 0 || hotx >= Width || hoty < 0 || hoty >= Height)
throw new ArgumentOutOfRangeException(); throw new ArgumentOutOfRangeException();
this.x = x; x = xhot;
this.y = y; y = hoty;
} }
internal int X { get { return x; } } internal int X { get { return x; } }