GUI: prepare for a chip manager redesign
This commit is contained in:
parent
61821ed327
commit
f29d72c45c
2 changed files with 90 additions and 14 deletions
3
extern/imgui_patched/imgui_widgets.cpp
vendored
3
extern/imgui_patched/imgui_widgets.cpp
vendored
|
|
@ -607,6 +607,9 @@ void ImGui::ScrollText(ImGuiID id, const char* text, const ImVec2& pos, ImVec2 s
|
|||
}
|
||||
|
||||
ImVec2 minArea=pos;
|
||||
if (pos.x==0 && pos.y==0) {
|
||||
minArea=ImVec2(window->DC.CursorPos.x, window->DC.CursorPos.y + window->DC.CurrLineTextBaseOffset);
|
||||
}
|
||||
ImVec2 maxArea=ImVec2(
|
||||
minArea.x+size.x,
|
||||
minArea.y+size.y
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue