Permalink
Browse files

[OpenTK] Renamed x/y to hotx/hoty

The new name matches their functionality closer.
  • Loading branch information...
1 parent 890805f commit 965c8baa7f589060ab76957ce90cc29632f0d2e1 @thefiddler thefiddler committed Apr 30, 2014
Showing with 8 additions and 8 deletions.
  1. +8 −8 Source/OpenTK/MouseCursor.cs
@@ -48,24 +48,24 @@ public sealed class MouseCursor : WindowIcon
}
// 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)
{
- if (x < 0 || x >= Width || y < 0 || y >= Height)
+ if (hotx < 0 || hotx >= Width || hoty < 0 || hoty >= Height)
throw new ArgumentOutOfRangeException();
- this.x = x;
- this.y = y;
+ x = xhot;
+ 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)
{
- if (x < 0 || x >= Width || y < 0 || y >= Height)
+ if (hotx < 0 || hotx >= Width || hoty < 0 || hoty >= Height)
throw new ArgumentOutOfRangeException();
- this.x = x;
- this.y = y;
+ x = xhot;
+ y = hoty;
}
internal int X { get { return x; } }

0 comments on commit 965c8ba

Please sign in to comment.