pads: fix multixy texts centering and remove rgb border radius

This commit is contained in:
jean-emmanuel 2017-07-21 17:30:23 +02:00
parent 51f694b764
commit 4b0b8b9907
2 changed files with 1 additions and 3 deletions

View file

@ -194,7 +194,7 @@ module.exports = class MultiXy extends _pads_base {
this.ctx.globalAlpha = 1
this.ctx.fillStyle = this.colors.text
this.ctx.fillText(t, x, y)
this.ctx.fillText(t, x + 0.5 * PXSCALE, y + 0.5 * PXSCALE)
this.clearRect[i] = [x - length / 2, y - this.fontSize / 2, length, this.fontSize]