[imgui] Clean implementation of rounded edges

This commit is contained in:
Xphalnos
2024-11-01 16:09:27 +01:00
committed by Radosław Gliński
parent 464e9a1645
commit fbad66e5bc
3 changed files with 5 additions and 11 deletions

View File

@@ -322,7 +322,6 @@ void EmulatorWindow::DisplayConfigDialog::OnDraw(ImGuiIO& io) {
// In the top-left corner so it's close to the menu bar from where it was
// opened.
// Origin Y coordinate 20 was taken from the Dear ImGui demo.
ImGui::PushStyleVar(ImGuiStyleVar_WindowRounding, 6.0f);
ImGui::SetNextWindowPos(ImVec2(20, 20), ImGuiCond_FirstUseEver);
ImGui::SetNextWindowSize(ImVec2(20, 20), ImGuiCond_FirstUseEver);
// Alpha from Dear ImGui tooltips (0.35 from the overlay provides too low
@@ -338,7 +337,6 @@ void EmulatorWindow::DisplayConfigDialog::OnDraw(ImGuiIO& io) {
return;
}
ImGui::PopStyleVar();
// Even if the close button has been pressed, still paint everything not to
// have one frame with an empty window.