another micro-optimization... BEWARE!
this breaks keyHit. I'll fix it after sleeping.
This commit is contained in:
parent
49eb65ab80
commit
2889ad7bcf
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue