GUI: prepare for a chip manager redesign

This commit is contained in:
tildearrow 2025-09-15 18:28:24 -05:00
parent 61821ed327
commit f29d72c45c
2 changed files with 90 additions and 14 deletions

View file

@ -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