Skip to content

Commit

Permalink
Merge pull request #83 from Mokona/fix-imgui-1.89.6
Browse files Browse the repository at this point in the history
Change ListBoxHeader/Footer to Begin/EndListBox for imgui 1.89.6
  • Loading branch information
floooh authored Jul 12, 2023
2 parents be6fded + 15a2226 commit a59dd2a
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 a59dd2a

Please sign in to comment.