From 15a222694728c00ec299b37756f27f08cd6a87cb Mon Sep 17 00:00:00 2001 From: Sylvain Glaize Date: Mon, 10 Jul 2023 21:18:11 +0200 Subject: [PATCH] Change ListBoxHeader/Footer to Begin/EndListBox for imgui 1.89.6 imgui 1.89.6 removed the ListBoxHeader and ListBoxFooter functions. --- ui/ui_dasm.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/ui_dasm.h b/ui/ui_dasm.h index c1c144c3..762c94c9 100644 --- a/ui/ui_dasm.h +++ b/ui/ui_dasm.h @@ -418,7 +418,7 @@ static void _ui_dasm_draw_stack(ui_dasm_t* win) { win->stack_num = 0; } char buf[5] = { 0 }; - if (ImGui::ListBoxHeader("##stack", ImVec2(-1,-1))) { + if (ImGui::BeginListBox("##stack", ImVec2(-1,-1))) { for (int i = 0; i < win->stack_num; i++) { snprintf(buf, sizeof(buf), "%04X", win->stack[i]); ImGui::PushID(i); @@ -432,7 +432,7 @@ static void _ui_dasm_draw_stack(ui_dasm_t* win) { } ImGui::PopID(); } - ImGui::ListBoxFooter(); + ImGui::EndListBox(); } ImGui::EndChild(); }