diff --git a/lib/libimhex/source/helpers/magic.cpp b/lib/libimhex/source/helpers/magic.cpp index 275ecbe22..54d1a81f0 100644 --- a/lib/libimhex/source/helpers/magic.cpp +++ b/lib/libimhex/source/helpers/magic.cpp @@ -28,7 +28,7 @@ namespace hex::magic { std::error_code error; for (const auto &dir : fs::getDefaultPaths(fs::ImHexPath::Magic)) { - for (const auto &entry : std::fs::directory_iterator(dir, error)) { + for (const auto &entry : std::fs::recursive_directory_iterator(dir, error)) { if (entry.is_regular_file() && ((sourceFiles && entry.path().extension().empty()) || (!sourceFiles && entry.path().extension() == ".mgc"))) { magicFiles += wolv::util::toUTF8String(wolv::io::fs::toShortPath(entry.path())) + MAGIC_PATH_SEPARATOR; } diff --git a/plugins/builtin/source/content/views/view_information.cpp b/plugins/builtin/source/content/views/view_information.cpp index 14a4b5d67..7390e10e6 100644 --- a/plugins/builtin/source/content/views/view_information.cpp +++ b/plugins/builtin/source/content/views/view_information.cpp @@ -319,7 +319,7 @@ namespace hex::plugin::builtin { ImGui::BeginGroup(); { ImGui::TextUnformatted("hex.builtin.view.information.digram"_lang); - this->m_digram.draw(ImVec2(300, 300)); + this->m_digram.draw(scaled(ImVec2(300, 300))); } ImGui::EndGroup(); @@ -328,7 +328,7 @@ namespace hex::plugin::builtin { ImGui::BeginGroup(); { ImGui::TextUnformatted("hex.builtin.view.information.layered_distribution"_lang); - this->m_layeredDistribution.draw(ImVec2(300, 300)); + this->m_layeredDistribution.draw(scaled(ImVec2(300, 300))); } ImGui::EndGroup(); }