From 342513e2e50362fcc39eebc9a795bdf8bee71101 Mon Sep 17 00:00:00 2001 From: antopilo Date: Sat, 4 Jan 2025 03:12:48 -0500 Subject: [PATCH] Fixed size of minimize button --- Editor/src/Windows/EditorInterface.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Editor/src/Windows/EditorInterface.cpp b/Editor/src/Windows/EditorInterface.cpp index 33d0e58f..d1d1716a 100644 --- a/Editor/src/Windows/EditorInterface.cpp +++ b/Editor/src/Windows/EditorInterface.cpp @@ -233,8 +233,7 @@ namespace Nuake { int iconWidth = std::max(MinimizeTexture->GetWidth(), 24); int iconHeight = std::max(MinimizeTexture->GetHeight(), 24); - const float padY = (buttonHeight - (float)iconHeight) / 2.0f; - if (ImGui::InvisibleButton("Minimize", ImVec2(iconWidth, iconHeight))) + if (ImGui::InvisibleButton("Minimize", ImVec2(buttonWidth, buttonHeight))) { glfwIconifyWindow(Window::Get()->GetHandle()); }