diff --git a/Source/Examples/OpenTK/GameWindow/MouseCursorSimple.cs b/Source/Examples/OpenTK/GameWindow/MouseCursorSimple.cs index 0c78cfc2..2ff22bf3 100644 --- a/Source/Examples/OpenTK/GameWindow/MouseCursorSimple.cs +++ b/Source/Examples/OpenTK/GameWindow/MouseCursorSimple.cs @@ -36,10 +36,8 @@ namespace Examples.Tutorial System.Runtime.InteropServices.Marshal.Copy( offset, rgba, y * stride, stride); } - - var cursor = new OpenTK.MouseCursor(rgba, bitmap.Width, bitmap.Height, 0, 0); - - this.Cursor = cursor; + + this.Cursor = new OpenTK.MouseCursor(rgba, bitmap.Width, bitmap.Height, 0, 0); } #region Keyboard_KeyDown