ctucx.git: oeffisearch

[nimlang] fast and simple tripplanner

commit ff2320d0f2c31d02b2f380df4297d661b994ffe4
parent d4aae8d34f201630a2b377575a1a4e8b690ce079
Author: Milan Pässler <me@pbb.lc>
Date: Fri, 7 Feb 2020 18:42:41 +0100

client/canvas: fix background flicker

Shadow was not reset at some point
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git 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;