From 3c3be024f4ca7b7fda0aac44592506788b8a5309 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Thu, 7 Mar 2024 20:54:41 +0100 Subject: add imfiledialog credit --- src/main.cpp | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index a709ef4..3b23ad0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -60,7 +60,7 @@ static void _ts_create_popups() { // About window if (ImGui::BeginPopupModal("About Text-Search", NULL, ImGuiWindowFlags_NoResize|ImGuiWindowFlags_NoMove)) { - ImGui::SetWindowSize({600, 400}); + ImGui::SetWindowSize({600, 420}); char* name = "Text-Search"; char* link = "created by Aldrik Ramaekers "; @@ -97,6 +97,13 @@ static void _ts_create_popups() { ImGui::TreePop(); } + if (ImGui::TreeNode("https://github.com/dfranx/ImFileDialog")) { + char* license = (char*)_binary_imfiledialog_LICENSE_start; + int license_length = _binary_imfiledialog_LICENSE_end - _binary_imfiledialog_LICENSE_start; + ImGui::Text("%.*s", license_length, license); + ImGui::TreePop(); + } + if (ImGui::TreeNode("https://github.com/nothings/stb/blob/master/stb_image.h")) { ImGui::Text("public domain"); ImGui::TreePop(); @@ -105,7 +112,7 @@ static void _ts_create_popups() { if (ImGui::TreeNode("https://github.com/sheredom/utf8.h")) { ImGui::Text("public domain"); ImGui::TreePop(); - } + } } ImGui::Dummy({0, 10}); -- cgit v1.2.3-70-g09d2