From ccb0325bb1691faaf009523f5513db009c640a61 Mon Sep 17 00:00:00 2001 From: Kristian Lyngstol Date: Mon, 13 Apr 2015 21:39:02 +0200 Subject: Adjust "now" font-size. --- web/nms.gathering.org/nms2/js/nms.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'web/nms.gathering.org/nms2/js') diff --git a/web/nms.gathering.org/nms2/js/nms.js b/web/nms.gathering.org/nms2/js/nms.js index bd6f963..2cfd4fb 100644 --- a/web/nms.gathering.org/nms2/js/nms.js +++ b/web/nms.gathering.org/nms2/js/nms.js @@ -821,16 +821,16 @@ function drawSwitches() function drawNow() { if (nms.now != false) { - dr.top.ctx.font = Math.round(nms.fontSize * canvas.scale) + "px " + nms.fontFace; - dr.top.ctx.clearRect(0,0,Math.floor(200 * canvas.scale),Math.floor(30 * canvas.scale)); + dr.top.ctx.font = Math.round(2 * nms.fontSize * canvas.scale) + "px " + nms.fontFace; + dr.top.ctx.clearRect(0,0,Math.floor(400 * canvas.scale),Math.floor(60 * canvas.scale)); dr.top.ctx.fillStyle = "white"; dr.top.ctx.strokeStyle = "black"; - dr.top.ctx.lineWidth = Math.round(1 * canvas.scale); + dr.top.ctx.lineWidth = Math.round(2 * canvas.scale); if (canvas.scale < 0.7) { - dr.top.ctx.lineWidth = 0.5; + dr.top.ctx.lineWidth = 2; } - dr.top.ctx.strokeText("Now: " + nms.now, 0 + margin.text, 20 * canvas.scale); - dr.top.ctx.fillText("Now: " + nms.now, 0 + margin.text, 20 * canvas.scale); + dr.top.ctx.strokeText("Now: " + nms.now, 0 + margin.text, 30 * canvas.scale); + dr.top.ctx.fillText("Now: " + nms.now, 0 + margin.text, 30 * canvas.scale); } } /* -- cgit v1.2.3