mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-23 20:05:30 +00:00
[OpenTK] Renamed x/y to hotx/hoty
The new name matches their functionality closer.
This commit is contained in:
parent
890805f2ae
commit
965c8baa7f
|
@ -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; } }
|
||||||
|
|
Loading…
Reference in a new issue