From 1833ab5fe8063f74a9a1727c98c6f286d813be5a Mon Sep 17 00:00:00 2001 From: SpaiR Date: Fri, 14 Feb 2020 22:12:26 +0300 Subject: [PATCH] Fix treeNode methods and pointer types --- imgui-binding/src/main/java/imgui/ImGui.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/imgui-binding/src/main/java/imgui/ImGui.java b/imgui-binding/src/main/java/imgui/ImGui.java index 121589a..ccd7354 100644 --- a/imgui-binding/src/main/java/imgui/ImGui.java +++ b/imgui-binding/src/main/java/imgui/ImGui.java @@ -3247,7 +3247,7 @@ public final class ImGui { // - TreeNode functions return true when the node is open, in which case you need to also call TreePop() when you are finished displaying the tree node contents. public static native boolean treeNode(String label); /* - return ImGui::TreeNode(label, NULL); + return ImGui::TreeNode(label); */ /** @@ -3274,8 +3274,8 @@ public final class ImGui { return ImGui::TreeNodeEx(strId, imGuiTreeNodeFlags, label, NULL); */ - public static native boolean treeNodeEx(int ptrId, int imGuiTreeNodeFlags, String label); /* - return ImGui::TreeNodeEx((void*)(intptr_t)ptrId, imGuiTreeNodeFlags, label, NULL); + public static native boolean treeNodeEx(long ptrId, int imGuiTreeNodeFlags, String label); /* + return ImGui::TreeNodeEx((void*)ptrId, imGuiTreeNodeFlags, label, NULL); */ /** @@ -3290,7 +3290,7 @@ public final class ImGui { */ public static native void treePush(long ptrId); /* - ImGui::TreePush((void*)(intptr_t)ptrId); + ImGui::TreePush((void*)ptrId); */ /**