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()); }