projects
/
platform
/
core
/
csapi
/
opentk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe65c87
)
Move cursor visible check into implementations
author
copygirl
<copygirl@mcft.net>
Tue, 2 Jan 2018 00:30:35 +0000
(
01:30
+0100)
committer
copygirl
<copygirl@mcft.net>
Fri, 5 Jan 2018 17:43:19 +0000
(18:43 +0100)
src/OpenTK/NativeWindow.cs
patch
|
blob
|
history
src/OpenTK/Platform/Linux/LinuxNativeWindow.cs
patch
|
blob
|
history
src/OpenTK/Platform/MacOS/CocoaNativeWindow.cs
patch
|
blob
|
history
src/OpenTK/Platform/SDL2/Sdl2NativeWindow.cs
patch
|
blob
|
history
diff --git
a/src/OpenTK/NativeWindow.cs
b/src/OpenTK/NativeWindow.cs
index 3ef08d010ba36b7f40d80fe793eed59c39040a70..249db50f9c51a1d4bcad248ca57211ec8dc26454 100644
(file)
--- a/
src/OpenTK/NativeWindow.cs
+++ b/
src/OpenTK/NativeWindow.cs
@@
-476,11
+476,7
@@
namespace OpenTK
public bool CursorVisible
{
get { return implementation.CursorVisible; }
- set
- {
- if (value == implementation.CursorVisible) return;
- implementation.CursorVisible = value;
- }
+ set { implementation.CursorVisible = value; }
}
/// <summary>
diff --git
a/src/OpenTK/Platform/Linux/LinuxNativeWindow.cs
b/src/OpenTK/Platform/Linux/LinuxNativeWindow.cs
index b9c88608b9e8f7d697d90e95f6b5cce41ce50926..36304bc22ce1fb70d297652a5baeb4ef049fc562 100644
(file)
--- a/
src/OpenTK/Platform/Linux/LinuxNativeWindow.cs
+++ b/
src/OpenTK/Platform/Linux/LinuxNativeWindow.cs
@@
-508,6
+508,7
@@
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/MacOS/CocoaNativeWindow.cs
b/src/OpenTK/Platform/MacOS/CocoaNativeWindow.cs
index 5ec5fe93c030dc04062ab821f1a8b62ac2effb51..a0d52817193b086c8a076c28d07d64ef4e2e293d 100644
(file)
--- a/
src/OpenTK/Platform/MacOS/CocoaNativeWindow.cs
+++ b/
src/OpenTK/Platform/MacOS/CocoaNativeWindow.cs
@@
-1239,6
+1239,7
@@
namespace OpenTK.Platform.MacOS
get { return cursorVisible; }
set
{
+ if (value == cursorVisible) return;
if (value && !cursorVisible)
{
SetCursorVisible(true);
diff --git
a/src/OpenTK/Platform/SDL2/Sdl2NativeWindow.cs
b/src/OpenTK/Platform/SDL2/Sdl2NativeWindow.cs
index a04effcec9edfdcaff3e5525e185ee184dd766ea..d4a7b224527da53e3506cd4e483e791ed2ea874c 100644
(file)
--- a/
src/OpenTK/Platform/SDL2/Sdl2NativeWindow.cs
+++ b/
src/OpenTK/Platform/SDL2/Sdl2NativeWindow.cs
@@
-933,6
+933,7
@@
namespace OpenTK.Platform.SDL2
}
set
{
+ if (value == is_cursor_visible) return;
lock (sync)
{
if (Exists)