From 4a91d5c724c966c44164b8bead8932cfbd1ded33 Mon Sep 17 00:00:00 2001 From: Jean Pierre Cimalando Date: Sun, 7 Mar 2021 08:57:56 +0100 Subject: [PATCH] Make the black key lighten on click --- plugins/editor/src/editor/GUIPiano.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/editor/src/editor/GUIPiano.cpp b/plugins/editor/src/editor/GUIPiano.cpp index bc3ecfbb..c056f56d 100644 --- a/plugins/editor/src/editor/GUIPiano.cpp +++ b/plugins/editor/src/editor/GUIPiano.cpp @@ -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);