Compare commits

...

1 Commits

Author SHA1 Message Date
dwelle
add75b8c93 fix: reset canvas transformation to not accumulate error on non-zero dPR 2021-07-14 11:01:34 +02:00

View File

@ -207,6 +207,7 @@ export const renderScene = (
const context = canvas.getContext("2d")!;
context.resetTransform();
context.scale(scale, scale);
// When doing calculations based on canvas width we should used normalized one