From 1ced369a347e95cdc6e1396e2c2cf441c8cd1aa0 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Thu, 1 Jan 2026 22:57:46 -0500 Subject: [PATCH] GUI: new pattern renderer, part 12 prepare for channel headers --- src/gui/newPattern.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gui/newPattern.cpp b/src/gui/newPattern.cpp index bb9b5d851..8ae3d649a 100644 --- a/src/gui/newPattern.cpp +++ b/src/gui/newPattern.cpp @@ -172,6 +172,8 @@ void FurnaceGUI::drawPatternNew() { } patFineOffsets[DIV_PAT_FX(DIV_MAX_EFFECTS)]=cellSizeAccum; + ImGui::Dummy(ImVec2(1.0f,ImGui::GetFrameHeight())); + ImVec2 top=ImGui::GetCursorScreenPos(); ImVec2 topRows=top+ImVec2(ImGui::GetScrollX(),0); ImVec2 pos=top; @@ -260,7 +262,6 @@ void FurnaceGUI::drawPatternNew() { ImGui::SetCursorScreenPos(top); ImGui::ItemSize(size,ImGui::GetStyle().FramePadding.y); if (ImGui::ItemAdd(rect,ImGui::GetID("PatternView1"),NULL,ImGuiItemFlags_AllowOverlap)) { - // calculate X and Y position of mouse cursor SelectionPoint pointer=SelectionPoint(-1,0,-1,-1); ImVec2 pointerPos=ImGui::GetMousePos()-ImVec2(top.x,0);