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
e6e1999f
Commit
e6e1999f
authored
May 19, 2023
by
malern
Browse files
Render UI at a higher resolution when viewing with a higher pixel ratio
parent
2998e232
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
web/scripts/app.js
web/scripts/app.js
+3
-2
No files found.
web/scripts/app.js
View file @
e6e1999f
...
...
@@ -921,8 +921,9 @@ export class ComfyApp {
this
.
graph
.
start
();
function
resizeCanvas
()
{
canvasEl
.
width
=
canvasEl
.
offsetWidth
;
canvasEl
.
height
=
canvasEl
.
offsetHeight
;
canvasEl
.
width
=
canvasEl
.
offsetWidth
*
window
.
devicePixelRatio
;
canvasEl
.
height
=
canvasEl
.
offsetHeight
*
window
.
devicePixelRatio
;
canvasEl
.
getContext
(
"
2d
"
).
scale
(
window
.
devicePixelRatio
,
window
.
devicePixelRatio
);
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