Revert DPI fix since it caused more issues than it solved.
This commit is contained in:
parent
069657fbf3
commit
4796e615dd
@ -921,9 +921,8 @@ export class ComfyApp {
|
|||||||
this.graph.start();
|
this.graph.start();
|
||||||
|
|
||||||
function resizeCanvas() {
|
function resizeCanvas() {
|
||||||
canvasEl.width = canvasEl.offsetWidth * window.devicePixelRatio;
|
canvasEl.width = canvasEl.offsetWidth;
|
||||||
canvasEl.height = canvasEl.offsetHeight * window.devicePixelRatio;
|
canvasEl.height = canvasEl.offsetHeight;
|
||||||
canvasEl.getContext("2d").scale(window.devicePixelRatio, window.devicePixelRatio);
|
|
||||||
canvas.draw(true, true);
|
canvas.draw(true, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user