diff options
author | 2021-08-10 20:36:45 +0200 | |
---|---|---|
committer | 2021-08-10 20:36:45 +0200 | |
commit | 0acf39899f5ed0c493d0709bc01d4318def0de9d (patch) | |
tree | 50b79114ac0f5147c8d36d54c3d6710ca7dac648 /src/osd/modules/debugger | |
parent | 1a6a018fc3b393e6f769d7db3aea397175aba459 (diff) |
Update debugimgui to compile with latest imgui
Diffstat (limited to 'src/osd/modules/debugger')
-rw-r--r-- | src/osd/modules/debugger/debugimgui.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/osd/modules/debugger/debugimgui.cpp b/src/osd/modules/debugger/debugimgui.cpp index 7f887ded093..23cc8ef66ba 100644 --- a/src/osd/modules/debugger/debugimgui.cpp +++ b/src/osd/modules/debugger/debugimgui.cpp @@ -1108,7 +1108,12 @@ void debug_imgui::draw_mount_dialog(const char* label) if(ImGui::InputText("##mountpath",m_path,1024,ImGuiInputTextFlags_EnterReturnsTrue)) m_filelist_refresh = true; ImGui::Separator(); - if(ImGui::ListBoxHeader("##filelist",m_filelist.size(),15)) + + ImVec2 listbox_size; + listbox_size.x = 0.0f; + listbox_size.y = ImGui::GetTextLineHeightWithSpacing() * 15.25f; + + if(ImGui::BeginListBox("##filelist",listbox_size)) { for(auto f = m_filelist.begin();f != m_filelist.end();++f) { @@ -1138,7 +1143,7 @@ void debug_imgui::draw_mount_dialog(const char* label) } } } - ImGui::ListBoxFooter(); + ImGui::EndListBox(); } ImGui::Separator(); if(ImGui::Button("Cancel##mount")) |