client/canvas: fix background flicker

Shadow was not reset at some point
This commit is contained in:
Milan Pässler 2020-02-07 18:42:41 +01:00
parent d4aae8d34f
commit ff2320d0f2

View file

@ -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;