mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-22 20:30:25 +08:00
ffix
This commit is contained in:
parent
6a18065533
commit
bc9b55ddbd
@ -926,11 +926,8 @@ export class ComfyApp {
|
|||||||
const h = canvasEl.offsetHeight;
|
const h = canvasEl.offsetHeight;
|
||||||
canvasEl.width = Math.floor(sc * w);
|
canvasEl.width = Math.floor(sc * w);
|
||||||
canvasEl.height = Math.floor(sc * h);
|
canvasEl.height = Math.floor(sc * h);
|
||||||
canvasEl.style.width = `${w}px`;
|
|
||||||
canvasEl.style.height = `${h}px`;
|
|
||||||
this.scale = window.devicePixelRatio;
|
this.scale = window.devicePixelRatio;
|
||||||
this.ctx.scale(this.scale, this.scale);
|
this.ctx.scale(this.scale, this.scale);
|
||||||
canvas.draw(true, true);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// Ensure the canvas fills the window
|
// Ensure the canvas fills the window
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user