Revert DPI fix since it caused more issues than it solved.

This commit is contained in:
comfyanonymous 2023-05-21 10:34:26 -04:00
parent 069657fbf3
commit 4796e615dd
1 changed files with 2 additions and 3 deletions

View File

@ -921,9 +921,8 @@ export class ComfyApp {
this.graph.start();
function resizeCanvas() {
canvasEl.width = canvasEl.offsetWidth * window.devicePixelRatio;
canvasEl.height = canvasEl.offsetHeight * window.devicePixelRatio;
canvasEl.getContext("2d").scale(window.devicePixelRatio, window.devicePixelRatio);
canvasEl.width = canvasEl.offsetWidth;
canvasEl.height = canvasEl.offsetHeight;
canvas.draw(true, true);
}