mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-11 00:04:24 +00:00
Internal: Minor tidying/reordering of sections within ImGuiContext / window DC.
This commit is contained in:
parent
7355c84701
commit
0b485f12d7
3 changed files with 41 additions and 26 deletions
|
|
@ -5903,7 +5903,7 @@ void ImGui::EndMenuBar()
|
|||
PopClipRect();
|
||||
PopID();
|
||||
window->DC.MenuBarOffset.x = window->DC.CursorPos.x - window->MenuBarRect().Min.x; // Save horizontal position so next append can reuse it. This is kinda equivalent to a per-layer CursorPos.
|
||||
window->DC.GroupStack.back().AdvanceCursor = false;
|
||||
window->DC.GroupStack.back().EmitItem = false;
|
||||
EndGroup(); // Restore position on layer 0
|
||||
window->DC.LayoutType = ImGuiLayoutType_Vertical;
|
||||
window->DC.NavLayerCurrent = ImGuiNavLayer_Main;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue