From 431b76233125f1c797333f42fdf951bad135f4b5 Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Wed, 12 Mar 2025 16:50:07 +0100 Subject: [PATCH] xy: restore optimized clear --- src/client/widgets/pads/xy.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/widgets/pads/xy.js b/src/client/widgets/pads/xy.js index 5c2f36e0..289b2f68 100644 --- a/src/client/widgets/pads/xy.js +++ b/src/client/widgets/pads/xy.js @@ -243,7 +243,7 @@ module.exports = class Xy extends Pad { if (this.getProp('pips')) this.drawPips() else { - // this.clearRect = [x - pointSize - 2 * PXSCALE, y - pointSize - 2 * PXSCALE, (pointSize + PXSCALE) * 4, (pointSize + PXSCALE) * 4] + this.clearRect = [[x - pointSize - 2 * PXSCALE, y - pointSize - 2 * PXSCALE, (pointSize + 2 * PXSCALE) * 2, (pointSize + 2 * PXSCALE) * 2]] } if (!ephemeral || this.active) { @@ -263,7 +263,7 @@ module.exports = class Xy extends Pad { if (!this.getProp('pips')) { var length = this.fontSize * t.length - // this.clearRect.push([x - length / 2, y - this.fontSize / 2, length, this.fontSize + 2 * PXSCALE]) + this.clearRect.push([x - length / 2, y - this.fontSize / 2, length, this.fontSize + 2 * PXSCALE]) } }