1
0
mirror of synced 2025-02-02 04:17:56 +01:00

fix: Wrong usage of windows icon texture

This commit is contained in:
WerWolv 2025-01-27 22:35:27 +01:00
parent 53a7577416
commit 0b3866a56a

View File

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