From d86967eb7c9eadbb962f2b592decea59977c0a3f Mon Sep 17 00:00:00 2001 From: copygirl Date: Fri, 5 Jan 2018 15:30:02 +0100 Subject: [PATCH] Remove an unneeded check and comment --- src/OpenTK/Platform/Linux/LinuxNativeWindow.cs | 1 - src/OpenTK/Platform/Windows/WinGLNative.cs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/OpenTK/Platform/Linux/LinuxNativeWindow.cs b/src/OpenTK/Platform/Linux/LinuxNativeWindow.cs index 36304bc2..b9c88608 100644 --- a/src/OpenTK/Platform/Linux/LinuxNativeWindow.cs +++ b/src/OpenTK/Platform/Linux/LinuxNativeWindow.cs @@ -508,7 +508,6 @@ namespace OpenTK.Platform.Linux } set { - if (value == is_cursor_visible) return; if (value && !is_cursor_visible) { SetCursor(cursor_current); diff --git a/src/OpenTK/Platform/Windows/WinGLNative.cs b/src/OpenTK/Platform/Windows/WinGLNative.cs index c1cd5fc3..44b66999 100644 --- a/src/OpenTK/Platform/Windows/WinGLNative.cs +++ b/src/OpenTK/Platform/Windows/WinGLNative.cs @@ -1256,7 +1256,7 @@ namespace OpenTK.Platform.Windows public override bool CursorVisible { - get { return cursor_visible_count >= 0; } // Not used + get { return cursor_visible_count >= 0; } set { if (value && cursor_visible_count < 0)