Skip to content

Commit 9c6826d

Browse files
committed
Removed custom cursors for Linux users (Fixes #200)
1 parent 6e7e2ad commit 9c6826d

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

KerbalAlarmClock/KerbalAlarmClock_Window.cs

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -953,7 +953,11 @@ private void windowMainMouseEvents()
953953
//if in width dragrect
954954
if (dragHandleWidth.Contains(mousePosition))
955955
{
956-
SetCustomCursor(ref cursorWidth, KACResources.curResizeWidth);
956+
//Bypass for 1.4.1 as this kills the game cursor on linux
957+
if (Application.platform != RuntimePlatform.LinuxPlayer)
958+
{
959+
SetCustomCursor(ref cursorWidth, KACResources.curResizeWidth);
960+
}
957961

958962
//watch for mousedown
959963
if (Event.current.type == EventType.mouseDown && Event.current.button == 0)
@@ -964,7 +968,12 @@ private void windowMainMouseEvents()
964968
}
965969
else
966970
{
967-
ClearCustomCursor(ref cursorWidth);
971+
972+
//Bypass for 1.4.1 as this kills the game cursor on linux
973+
if (Application.platform != RuntimePlatform.LinuxPlayer)
974+
{
975+
ClearCustomCursor(ref cursorWidth);
976+
}
968977
}
969978
}
970979

0 commit comments

Comments
 (0)