impr: Make title bar icon always draw at the correct size

This commit is contained in:
WerWolv
2025-02-18 15:21:56 +01:00
parent 7898df9c2c
commit af0c15f69d
2 changed files with 1 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 644 B

After

Width:  |  Height:  |  Size: 4.6 KiB

View File

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