From d1d2f9a36b3494bbb3f5c11bec5731a6a72398c9 Mon Sep 17 00:00:00 2001 From: Paul Fd Date: Sat, 10 Jul 2021 01:46:46 +0200 Subject: [PATCH] Don't draw a white keyboard if all keys are used --- plugins/editor/src/editor/GUIPiano.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/plugins/editor/src/editor/GUIPiano.cpp b/plugins/editor/src/editor/GUIPiano.cpp index 4091ef60..9ecc86b7 100644 --- a/plugins/editor/src/editor/GUIPiano.cpp +++ b/plugins/editor/src/editor/GUIPiano.cpp @@ -164,7 +164,6 @@ void SPiano::draw(CDrawContext* dc) const Dimensions dim = getDimensions(false); const unsigned octs = impl.octs_; const unsigned keyCount = octs * 12; - const bool allKeysUsed = impl.keyUsed_.all(); dc->setDrawMode(kAntiAliasing); @@ -184,8 +183,6 @@ void SPiano::draw(CDrawContext* dc) switch (getKeyRole(key)) { case KeyRole::Note: - if (allKeysUsed) - goto whiteKeyDefault; hcy.h = impl.keyUsedHue_; break; case KeyRole::Switch: @@ -224,8 +221,6 @@ void SPiano::draw(CDrawContext* dc) switch (getKeyRole(key)) { case KeyRole::Note: - if (allKeysUsed) - goto blackKeyDefault; hcy.h = impl.keyUsedHue_; break; case KeyRole::Switch: