Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
4796e615
Commit
4796e615
authored
May 21, 2023
by
comfyanonymous
Browse files
Revert DPI fix since it caused more issues than it solved.
parent
069657fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
web/scripts/app.js
web/scripts/app.js
+2
-3
No files found.
web/scripts/app.js
View file @
4796e615
...
@@ -921,9 +921,8 @@ export class ComfyApp {
...
@@ -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
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment