GUI: fix piano being clickable - again

This commit is contained in:
tildearrow 2022-11-20 03:26:54 -05:00
parent a7b139cd00
commit 8a33aecbe0
1 changed files with 1 additions and 1 deletions

View File

@ -266,7 +266,7 @@ void FurnaceGUI::drawPiano() {
} else { } else {
int bottomNotes=7*oct; int bottomNotes=7*oct;
// evaluate input // evaluate input
for (TouchPoint& i: activePoints) { if (canInput) for (TouchPoint& i: activePoints) {
if (rect.Contains(ImVec2(i.x,i.y))) { if (rect.Contains(ImVec2(i.x,i.y))) {
// top // top
int o=((i.x-rect.Min.x)/(rect.Max.x-rect.Min.x))*oct; int o=((i.x-rect.Min.x)/(rect.Max.x-rect.Min.x))*oct;