Browse Source

Merge pull request #53468 from KoBeWi/crossdrag

Rémi Verschelde 3 years ago
parent
commit
18c1e80141
2 changed files with 2 additions and 1 deletions
  1. 1 0
      doc/classes/Input.xml
  2. 1 1
      platform/windows/display_server_windows.cpp

+ 1 - 0
doc/classes/Input.xml

@@ -386,6 +386,7 @@
 		</constant>
 		</constant>
 		<constant name="CURSOR_DRAG" value="6" enum="CursorShape">
 		<constant name="CURSOR_DRAG" value="6" enum="CursorShape">
 			Drag cursor. Usually displayed when dragging something.
 			Drag cursor. Usually displayed when dragging something.
+			[b]Note:[/b] Windows lacks a dragging cursor, so [constant CURSOR_DRAG] is the same as [constant CURSOR_MOVE] for this platform.
 		</constant>
 		</constant>
 		<constant name="CURSOR_CAN_DROP" value="7" enum="CursorShape">
 		<constant name="CURSOR_CAN_DROP" value="7" enum="CursorShape">
 			Can drop cursor. Usually displayed when dragging something to indicate that it can be dropped at the current position.
 			Can drop cursor. Usually displayed when dragging something to indicate that it can be dropped at the current position.

+ 1 - 1
platform/windows/display_server_windows.cpp

@@ -1208,7 +1208,7 @@ void DisplayServerWindows::cursor_set_shape(CursorShape p_shape) {
 		IDC_CROSS,
 		IDC_CROSS,
 		IDC_WAIT,
 		IDC_WAIT,
 		IDC_APPSTARTING,
 		IDC_APPSTARTING,
-		IDC_ARROW,
+		IDC_SIZEALL,
 		IDC_ARROW,
 		IDC_ARROW,
 		IDC_NO,
 		IDC_NO,
 		IDC_SIZENS,
 		IDC_SIZENS,