From 7dd51820cec503e99f871aba32c119902ad2d70e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lumi=C3=A8re=20=C3=89lev=C3=A9?= <88174309+PoneyClairDeLune@users.noreply.github.com> Date: Wed, 20 Sep 2023 10:02:21 +0000 Subject: [PATCH] 1-pixel gap between channels. --- src/cambiare/index.mjs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/cambiare/index.mjs b/src/cambiare/index.mjs index ef0b053f..b376add6 100644 --- a/src/cambiare/index.mjs +++ b/src/cambiare/index.mjs @@ -191,18 +191,18 @@ let Cambiare = class extends RootDisplay { // Draw calls switch (upThis.style) { case "block": { - let h = context.canvas.height; - context.fillRect(sx, 0, dx, h); + let h = context.canvas.height - 1; + context.fillRect(sx, 1, dx, h); if (isHeld) { - context.clearRect(sx + border, border, dx - (border << 1), h - (border << 1)); + context.clearRect(sx + border, border + 1, dx - (border << 1), h - (border << 1)); }; break; }; case "comb": { - let h = isBlackKey ? Math.round((context.canvas.height << 1) / 3) : context.canvas.height; - context.fillRect(sx, 0, dx, h); + let h = (isBlackKey ? Math.round((context.canvas.height << 1) / 3) : context.canvas.height) - 1; + context.fillRect(sx, 1, dx, h); if (isHeld) { - context.clearRect(sx + border, border, dx - (border << 1), h - (border << 1)); + context.clearRect(sx + border, border + 1, dx - (border << 1), h - (border << 1)); }; break; };