File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
imgui-lwjgl3/src/test/java Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ public final class ImGuiGlfwExample {
56
56
private final double [] mousePosY = new double [1 ];
57
57
58
58
// Mouse cursors provided by GLFW
59
- private final long [] mouseCursors = new long [ImGuiMouseCursor .COUNT - 1 ]; // Minus 1, because GLFW 3.4 doesn't provide GLFW_NOT_ALLOWED_CURSOR
59
+ private final long [] mouseCursors = new long [ImGuiMouseCursor .COUNT ];
60
60
61
61
// LWJGL3 rendered itself (SHOULD be initialized)
62
62
private final ImGuiImplGl3 imGuiGl3 = new ImGuiImplGl3 ();
@@ -187,6 +187,7 @@ private void initImGui() {
187
187
mouseCursors [ImGuiMouseCursor .ResizeNESW ] = glfwCreateStandardCursor (GLFW_ARROW_CURSOR );
188
188
mouseCursors [ImGuiMouseCursor .ResizeNWSE ] = glfwCreateStandardCursor (GLFW_ARROW_CURSOR );
189
189
mouseCursors [ImGuiMouseCursor .Hand ] = glfwCreateStandardCursor (GLFW_HAND_CURSOR );
190
+ mouseCursors [ImGuiMouseCursor .NotAllowed ] = glfwCreateStandardCursor (GLFW_ARROW_CURSOR );
190
191
191
192
// ------------------------------------------------------------
192
193
// Here goes GLFW callbacks to update user input in Dear ImGui
You can’t perform that action at this time.
0 commit comments