another micro-optimization... BEWARE!

this breaks keyHit. I'll fix it after sleeping.
This commit is contained in:
tildearrow 2026-01-08 06:36:11 -05:00
parent 49eb65ab80
commit 2889ad7bcf

View file

@ -357,6 +357,11 @@ void FurnaceGUI::drawPatternNew() {
// skip hidden channels
if (!e->curSubSong->chanShow[i]) continue;
ImGui::SetCursorScreenPos(ImVec2(topHeaders.x+patChanX[i]+sizeRows.x,topHeaders.y));
// skip off-screen channels
// TODO: may cause issues with keyHit. test!
if (ImGui::GetCursorScreenPos().x>winRect.Max.x) break;
if (ImGui::GetCursorScreenPos().x+patChanX[i+1]-patChanX[i]<winRect.Min.x) continue;
ImGui::BeginGroup();
bool displayTooltip=false;