GUI: new pattern cursor logic, part 20

oh yes
This commit is contained in:
tildearrow 2025-07-18 05:05:56 -05:00
parent c5231eb569
commit e5ad462cd2
7 changed files with 60 additions and 14 deletions

View file

@ -1401,6 +1401,8 @@ void FurnaceGUI::drawPattern() {
}
}
}
// HACK: we need to capture the last scroll position in order to restore it during undo/redo
patScroll=ImGui::GetScrollY();
// HACK: rendering here would cause the pairs to be drawn behind the pattern for some reason...
// ...so we capture the table's window draw list...
tdl=ImGui::GetWindowDrawList();