Skip to content

Commit 1833ab5

Browse files
committed
Fix treeNode methods and pointer types
1 parent b43e95b commit 1833ab5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

imgui-binding/src/main/java/imgui/ImGui.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3247,7 +3247,7 @@ public static boolean inputScalarN(String label, int dataType, ImShort pData, in
32473247
// - 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.
32483248

32493249
public static native boolean treeNode(String label); /*
3250-
return ImGui::TreeNode(label, NULL);
3250+
return ImGui::TreeNode(label);
32513251
*/
32523252

32533253
/**
@@ -3274,8 +3274,8 @@ public static boolean inputScalarN(String label, int dataType, ImShort pData, in
32743274
return ImGui::TreeNodeEx(strId, imGuiTreeNodeFlags, label, NULL);
32753275
*/
32763276

3277-
public static native boolean treeNodeEx(int ptrId, int imGuiTreeNodeFlags, String label); /*
3278-
return ImGui::TreeNodeEx((void*)(intptr_t)ptrId, imGuiTreeNodeFlags, label, NULL);
3277+
public static native boolean treeNodeEx(long ptrId, int imGuiTreeNodeFlags, String label); /*
3278+
return ImGui::TreeNodeEx((void*)ptrId, imGuiTreeNodeFlags, label, NULL);
32793279
*/
32803280

32813281
/**
@@ -3290,7 +3290,7 @@ public static boolean inputScalarN(String label, int dataType, ImShort pData, in
32903290
*/
32913291

32923292
public static native void treePush(long ptrId); /*
3293-
ImGui::TreePush((void*)(intptr_t)ptrId);
3293+
ImGui::TreePush((void*)ptrId);
32943294
*/
32953295

32963296
/**

0 commit comments

Comments
 (0)