From ff2320d0f2c31d02b2f380df4297d661b994ffe4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Milan=20P=C3=A4ssler?= Date: Fri, 7 Feb 2020 18:42:41 +0100 Subject: [PATCH] client/canvas: fix background flicker Shadow was not reset at some point --- client/js/canvas.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/js/canvas.js b/client/js/canvas.js index db6875f..5c4f60b 100644 --- a/client/js/canvas.js +++ b/client/js/canvas.js @@ -120,8 +120,9 @@ const updateTextCache = () => { }; const renderJourneys = () => { + ctx.shadowBlur = 0; ctx.clearRect(0, 0, canvas.width / dpr, canvas.height / dpr); - ctx.fillStyle = '#00000080'; + ctx.fillStyle = '#00000085'; ctx.fillRect(0, 0, canvas.width / dpr, canvas.height / dpr); let x = canvasState.offsetX, y;