Skip to content

Commit

Permalink
Change ListBoxHeader/Footer to Begin/EndListBox for imgui 1.89.6
Browse files Browse the repository at this point in the history
imgui 1.89.6 removed the ListBoxHeader and ListBoxFooter functions.
  • Loading branch information
Mokona committed Jul 10, 2023
1 parent be6fded commit 15a2226
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/ui_dasm.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -432,7 +432,7 @@ static void _ui_dasm_draw_stack(ui_dasm_t* win) {
}
ImGui::PopID();
}
ImGui::ListBoxFooter();
ImGui::EndListBox();
}
ImGui::EndChild();
}
Expand Down

0 comments on commit 15a2226

Please sign in to comment.