Skip to content

Commit 963b77f

Browse files
committed
minor changes
1 parent d5b5099 commit 963b77f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/p5.Renderer.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,11 @@ class Renderer extends p5.Element {
158158
// get(x,y,w,h)
159159
}
160160

161-
const region = new p5.Image(w, h);
161+
const region = new p5.Image(w*pd, h*pd);
162162
region._pixelDensity = pd;
163163
region.canvas
164164
.getContext('2d')
165-
.drawImage(canvas, x, y, w * pd, h * pd, 0, 0, w, h);
165+
.drawImage(canvas, x, y, w * pd, h * pd, 0, 0, w*pd, h*pd);
166166

167167
return region;
168168
}

0 commit comments

Comments
 (0)