Don't draw a white keyboard if all keys are used
This commit is contained in:
parent
ba7cb52b9c
commit
d1d2f9a36b
1 changed files with 0 additions and 5 deletions
|
|
@ -164,7 +164,6 @@ void SPiano::draw(CDrawContext* dc)
|
||||||
const Dimensions dim = getDimensions(false);
|
const Dimensions dim = getDimensions(false);
|
||||||
const unsigned octs = impl.octs_;
|
const unsigned octs = impl.octs_;
|
||||||
const unsigned keyCount = octs * 12;
|
const unsigned keyCount = octs * 12;
|
||||||
const bool allKeysUsed = impl.keyUsed_.all();
|
|
||||||
|
|
||||||
dc->setDrawMode(kAntiAliasing);
|
dc->setDrawMode(kAntiAliasing);
|
||||||
|
|
||||||
|
|
@ -184,8 +183,6 @@ void SPiano::draw(CDrawContext* dc)
|
||||||
|
|
||||||
switch (getKeyRole(key)) {
|
switch (getKeyRole(key)) {
|
||||||
case KeyRole::Note:
|
case KeyRole::Note:
|
||||||
if (allKeysUsed)
|
|
||||||
goto whiteKeyDefault;
|
|
||||||
hcy.h = impl.keyUsedHue_;
|
hcy.h = impl.keyUsedHue_;
|
||||||
break;
|
break;
|
||||||
case KeyRole::Switch:
|
case KeyRole::Switch:
|
||||||
|
|
@ -224,8 +221,6 @@ void SPiano::draw(CDrawContext* dc)
|
||||||
|
|
||||||
switch (getKeyRole(key)) {
|
switch (getKeyRole(key)) {
|
||||||
case KeyRole::Note:
|
case KeyRole::Note:
|
||||||
if (allKeysUsed)
|
|
||||||
goto blackKeyDefault;
|
|
||||||
hcy.h = impl.keyUsedHue_;
|
hcy.h = impl.keyUsedHue_;
|
||||||
break;
|
break;
|
||||||
case KeyRole::Switch:
|
case KeyRole::Switch:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue