Fix StyleVar stack mismatch
This commit is contained in:
parent
811ce6da6b
commit
b812a90637
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue