From 251a6e813eddb8bb49f6cc40c58106a26a07d89f Mon Sep 17 00:00:00 2001 From: Fraser Date: Fri, 21 Feb 2014 19:44:51 +0000 Subject: [PATCH] No need for named variable. --- Source/Examples/OpenTK/GameWindow/MouseCursorSimple.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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