Upgrade ImGui to v1.86

This commit is contained in:
Matthew Berry 2022-01-09 18:17:13 -08:00
parent c33dc77feb
commit 5405b3978b
2 changed files with 3 additions and 3 deletions

View file

@ -20,10 +20,10 @@ dependencies:
github: nulldotpro/LibGL
imgui:
github: oprypin/crystal-imgui
commit: 3c57707 # lock a working v1.85 commit
tag: v1.86
imgui-backends:
github: mattrberry/crystal-imgui-backends
tag: v1.85
tag: v1.86
development_dependencies:
stumpy_png:

View file

@ -31,7 +31,7 @@ module ImGui
display_size = ImGui.get_main_viewport.size
width = Math.min(display_size.x - 40, 600)
height = Math.min(display_size.y - 40, 16 * ImGui.get_text_line_height_with_spacing)
if ImGui.begin_list_box("", ImGui::ImVec2.new(width, height))
if ImGui.begin_list_box("##files", ImGui::ImVec2.new(width, height))
@matched_entries.each_with_index do |entry, idx|
next if entry[:hidden] && !@match_hidden
next if entry[:file?] && !extensions.nil? && !extensions.includes?(entry[:extension])