From 5744ad588f6b80a2b639440fb9e7346583f18c0d Mon Sep 17 00:00:00 2001 From: WerWolv Date: Wed, 16 Jul 2025 10:33:24 +0200 Subject: [PATCH] impr: Better icon sizes for process list --- .../source/content/providers/process_memory_provider.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/builtin/source/content/providers/process_memory_provider.cpp b/plugins/builtin/source/content/providers/process_memory_provider.cpp index 7aaeffd32..e840cece4 100644 --- a/plugins/builtin/source/content/providers/process_memory_provider.cpp +++ b/plugins/builtin/source/content/providers/process_memory_provider.cpp @@ -192,7 +192,7 @@ namespace hex::plugin::builtin { for (auto &pixel : pixels) pixel = (pixel & 0xFF00FF00) | ((pixel & 0xFF) << 16) | ((pixel & 0xFF0000) >> 16); - texture = ImGuiExt::Texture::fromBitmap(reinterpret_cast(pixels.data()), pixels.size(), bitmap.bmWidth, bitmap.bmHeight, ImGuiExt::Texture::Filter::Nearest); + texture = ImGuiExt::Texture::fromBitmap(reinterpret_cast(pixels.data()), pixels.size(), bitmap.bmWidth, bitmap.bmHeight, ImGuiExt::Texture::Filter::Linear); } } } @@ -262,13 +262,15 @@ namespace hex::plugin::builtin { ImGui::TableNextRow(); ImGui::TableNextColumn(); - ImGui::Image(process->icon, process->icon.getSize()); + + auto height = ImGui::GetTextLineHeight(); + ImGui::Image(process->icon, { height, height }); ImGui::TableNextColumn(); ImGuiExt::TextFormatted("{}", process->id); ImGui::TableNextColumn(); - if (ImGui::Selectable(process->name.c_str(), m_selectedProcess != nullptr && process->id == m_selectedProcess->id, ImGuiSelectableFlags_SpanAllColumns, ImVec2(0, process->icon.getSize().y))) + if (ImGui::Selectable(process->name.c_str(), m_selectedProcess != nullptr && process->id == m_selectedProcess->id, ImGuiSelectableFlags_SpanAllColumns)) m_selectedProcess = process; ImGui::PopID();