Make the black key lighten on click
This commit is contained in:
parent
1b515a1b33
commit
4a91d5c724
1 changed files with 1 additions and 1 deletions
|
|
@ -220,7 +220,7 @@ void SPiano::draw(CDrawContext* dc)
|
|||
}
|
||||
|
||||
if (impl.keyval_[key])
|
||||
hcy.y = std::max(0.0f, hcy.y - impl.keyLumaPressDelta_);
|
||||
hcy.y = std::min(1.0f, hcy.y + impl.keyLumaPressDelta_);
|
||||
|
||||
CColor keycolor = hcy.toColor();
|
||||
dc->setFillColor(keycolor);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue