Replace cursor_visible with implementation
INativeWindow implementations already have their own private fields storing cursor visibility
This commit is contained in:
parent
f28ea173dc
commit
fe65c87d81
1 changed files with 2 additions and 3 deletions
|
@ -47,7 +47,6 @@ namespace OpenTK
|
|||
private readonly INativeWindow implementation;
|
||||
|
||||
private bool events;
|
||||
private bool cursor_visible = true;
|
||||
private bool previous_cursor_visible = true;
|
||||
|
||||
/// <summary>
|
||||
|
@ -476,10 +475,10 @@ namespace OpenTK
|
|||
/// </summary>
|
||||
public bool CursorVisible
|
||||
{
|
||||
get { return cursor_visible; }
|
||||
get { return implementation.CursorVisible; }
|
||||
set
|
||||
{
|
||||
cursor_visible = value;
|
||||
if (value == implementation.CursorVisible) return;
|
||||
implementation.CursorVisible = value;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue