impr: Make sure Windows title icon is scaled correctly

This commit is contained in:
WerWolv
2025-01-13 22:31:24 +01:00
parent ec1b1c2b7d
commit 17fff56fa0

View File

@@ -384,7 +384,7 @@ namespace hex::plugin::builtin {
if (ImHexApi::System::isBorderlessWindowModeEnabled()) {
#if defined(OS_WINDOWS)
ImGui::SetCursorPosX(5_scaled);
ImGui::Image(s_logoTexture, ImVec2(menuBarHeight, menuBarHeight));
ImGui::Image(s_logoTexture, s_logoTexture.getSize() * u32(1_scaled));
ImGui::SetCursorPosX(5_scaled);
ImGui::InvisibleButton("##logo", ImVec2(menuBarHeight, menuBarHeight));
if (ImGui::IsItemHovered() && ImGui::IsAnyMouseDown())