[API] Fix ImGuiIO doesn't set font to field

This commit is contained in:
SpaiR committed 2021-02-27 16:16:12 +02:00
1 parent 51cfb7ef3d
commit 1fe8c4a75a
1 file changed
+2 -1
@@ -9,7 +9,7 @@ import imgui.callback.ImStrSupplier;
* Access via ImGui::GetIO(). Read 'Programmer guide' section in .cpp file for general usage. * Access via ImGui::GetIO(). Read 'Programmer guide' section in .cpp file for general usage.
*/ */
public final class ImGuiIO extends ImGuiStruct { public final class ImGuiIO extends ImGuiStruct {
private final ImFontAtlas imFontAtlas = new ImFontAtlas(0); private ImFontAtlas imFontAtlas = new ImFontAtlas(0);
public ImGuiIO(final long ptr) { public ImGuiIO(final long ptr) {
super(ptr); super(ptr);
@@ -259,6 +259,7 @@ public final class ImGuiIO extends ImGuiStruct {
* BINDING NOTICE: You SHOULD manually destroy previously used ImFontAtlas. * BINDING NOTICE: You SHOULD manually destroy previously used ImFontAtlas.
*/ */
public void setFonts(final ImFontAtlas imFontAtlas) { public void setFonts(final ImFontAtlas imFontAtlas) {
this.imFontAtlas = imFontAtlas;
nSetFonts(imFontAtlas.ptr); nSetFonts(imFontAtlas.ptr);
} }