Remove an unneeded check and comment

This commit is contained in:
copygirl 2018-01-05 15:30:02 +01:00
parent 673c922b72
commit d86967eb7c
2 changed files with 1 additions and 2 deletions

View file

@ -508,7 +508,6 @@ namespace OpenTK.Platform.Linux
} }
set set
{ {
if (value == is_cursor_visible) return;
if (value && !is_cursor_visible) if (value && !is_cursor_visible)
{ {
SetCursor(cursor_current); SetCursor(cursor_current);

View file

@ -1256,7 +1256,7 @@ namespace OpenTK.Platform.Windows
public override bool CursorVisible public override bool CursorVisible
{ {
get { return cursor_visible_count >= 0; } // Not used get { return cursor_visible_count >= 0; }
set set
{ {
if (value && cursor_visible_count < 0) if (value && cursor_visible_count < 0)