1
0
Fork 0
mirror of https://github.com/gwm17/glfw.git synced 2024-11-26 20:28:49 -05:00

Wayland: Fix standard cursor name selection

Regression introduced by 08e5a17063.
This commit is contained in:
Camilla Löwy 2021-09-02 18:30:41 +02:00
parent 216d5e8402
commit 4cbe743b74

View File

@ -1299,18 +1299,25 @@ int _glfwPlatformCreateStandardCursor(_GLFWcursor* cursor, int shape)
{ {
case GLFW_ARROW_CURSOR: case GLFW_ARROW_CURSOR:
name = "left_ptr"; name = "left_ptr";
break;
case GLFW_IBEAM_CURSOR: case GLFW_IBEAM_CURSOR:
name = "xterm"; name = "xterm";
break;
case GLFW_CROSSHAIR_CURSOR: case GLFW_CROSSHAIR_CURSOR:
name = "crosshair"; name = "crosshair";
break;
case GLFW_POINTING_HAND_CURSOR: case GLFW_POINTING_HAND_CURSOR:
name = "hand2"; name = "hand2";
break;
case GLFW_RESIZE_EW_CURSOR: case GLFW_RESIZE_EW_CURSOR:
name = "sb_h_double_arrow"; name = "sb_h_double_arrow";
break;
case GLFW_RESIZE_NS_CURSOR: case GLFW_RESIZE_NS_CURSOR:
name = "sb_v_double_arrow"; name = "sb_v_double_arrow";
break;
case GLFW_RESIZE_ALL_CURSOR: case GLFW_RESIZE_ALL_CURSOR:
name = "fleur"; name = "fleur";
break;
default: default:
_glfwInputError(GLFW_CURSOR_UNAVAILABLE, _glfwInputError(GLFW_CURSOR_UNAVAILABLE,
"Wayland: Standard cursor shape unavailable"); "Wayland: Standard cursor shape unavailable");