Skip to content

Commit 642d7ab

Browse files
committed
[API] Change ImFontConfig#setEllipsisChar "short" to "int"
1 parent cd6432b commit 642d7ab

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ public void setGlyphRanges(final short[] glyphRanges) {
325325
/**
326326
* Explicitly specify unicode codepoint of ellipsis character. When fonts are being merged first specified ellipsis will be used.
327327
*/
328-
public native void setEllipsisChar(short ellipsisChar); /*
328+
public native void setEllipsisChar(int ellipsisChar); /*
329329
IM_FONT_CONFIG->EllipsisChar = (ImWchar)ellipsisChar;
330330
*/
331331

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,9 @@ public static ImGuiDockNode dockBuilderGetNode(final int nodeId) {
5454
final long ptr = nDockBuilderGetNode(nodeId);
5555
if (ptr == 0) {
5656
return null;
57-
} else {
58-
DOCK_NODE.ptr = ptr;
59-
return DOCK_NODE;
6057
}
58+
DOCK_NODE.ptr = ptr;
59+
return DOCK_NODE;
6160
}
6261

6362
private static native long nDockBuilderGetNode(int nodeId); /*
@@ -68,10 +67,9 @@ public static ImGuiDockNode dockBuilderGetCentralNode(final int nodeId) {
6867
final long ptr = nDockBuilderGetCentralNode(nodeId);
6968
if (ptr == 0) {
7069
return null;
71-
} else {
72-
DOCK_NODE.ptr = ptr;
73-
return DOCK_NODE;
7470
}
71+
DOCK_NODE.ptr = ptr;
72+
return DOCK_NODE;
7573
}
7674

7775
private static native long nDockBuilderGetCentralNode(int nodeId); /*

0 commit comments

Comments
 (0)