mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-01-25 15:55:18 +00:00
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();
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user