From b812a90637f72c4bc52d3093dae31d49caebb767 Mon Sep 17 00:00:00 2001 From: Natt Akuma Date: Wed, 1 Nov 2023 22:34:35 +0700 Subject: [PATCH] Fix StyleVar stack mismatch --- src/gui/xyOsc.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/xyOsc.cpp b/src/gui/xyOsc.cpp index b1094007f..328b86087 100644 --- a/src/gui/xyOsc.cpp +++ b/src/gui/xyOsc.cpp @@ -221,11 +221,11 @@ void FurnaceGUI::drawXYOsc() { if (ImGui::IsItemClicked(ImGuiMouseButton_Right)) { xyOscOptions=true; } - if (settings.oscTakesEntireWindow) { - ImGui::PopStyleVar(3); - } } } + if (settings.oscTakesEntireWindow && !xyOscOptions) { + ImGui::PopStyleVar(3); + } if (ImGui::IsWindowFocused(ImGuiFocusedFlags_ChildWindows)) curWindow=GUI_WINDOW_XY_OSC; ImGui::End(); }