Skip to content

Commit 1afc9c9

Browse files
committed
Updated key unit computing
1 parent b31c482 commit 1afc9c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/widgets/specific/PianoKeys.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -468,7 +468,7 @@ namespace lsp
468468
const float scaling = lsp_max(0.0f, sScaling.get());
469469
const ssize_t angle = sAngle.get() & 0x3;
470470
const float split = scaling * lsp_max(0.0f, sSplitSize.get());
471-
const float key_unit = lsp_max(split, 1.0f);
471+
const float key_unit = lsp_max(split * 0.5f, 1.0f);
472472
const bool natural = sNatural.get();
473473

474474
// Compute the keyboard layout

0 commit comments

Comments
 (0)