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)) {
|
if (ImGui::IsItemClicked(ImGuiMouseButton_Right)) {
|
||||||
xyOscOptions=true;
|
xyOscOptions=true;
|
||||||
}
|
}
|
||||||
if (settings.oscTakesEntireWindow) {
|
}
|
||||||
|
}
|
||||||
|
if (settings.oscTakesEntireWindow && !xyOscOptions) {
|
||||||
ImGui::PopStyleVar(3);
|
ImGui::PopStyleVar(3);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
if (ImGui::IsWindowFocused(ImGuiFocusedFlags_ChildWindows)) curWindow=GUI_WINDOW_XY_OSC;
|
if (ImGui::IsWindowFocused(ImGuiFocusedFlags_ChildWindows)) curWindow=GUI_WINDOW_XY_OSC;
|
||||||
ImGui::End();
|
ImGui::End();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue