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