From 965c8baa7f589060ab76957ce90cc29632f0d2e1 Mon Sep 17 00:00:00 2001 From: thefiddler Date: Wed, 30 Apr 2014 08:44:48 +0200 Subject: [PATCH] [OpenTK] Renamed x/y to hotx/hoty The new name matches their functionality closer. --- Source/OpenTK/MouseCursor.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Source/OpenTK/MouseCursor.cs b/Source/OpenTK/MouseCursor.cs index 2668efbe..72f44c9a 100644 --- a/Source/OpenTK/MouseCursor.cs +++ b/Source/OpenTK/MouseCursor.cs @@ -48,24 +48,24 @@ namespace OpenTK } // 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; } }