Skip to content

Commit 4e82bbe

Browse files
authored
Merge pull request #7177 from Forchapeatl/patch-5
Fix incorrect pixel offset in updatePixels()
2 parents 21d7c8c + e9b1835 commit 4e82bbe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/p5.Renderer2D.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ class Renderer2D extends p5.Renderer {
525525
pixelsState.imageData;
526526
}
527527

528-
this.drawingContext.putImageData(pixelsState.imageData, x, y, 0, 0, w, h);
528+
this.drawingContext.putImageData(pixelsState.imageData, 0, 0, x, y, w, h);
529529
}
530530

531531
//////////////////////////////////////////////

0 commit comments

Comments
 (0)