Skip to content

Commit 2620171

Browse files
committed
Rectangle mode is now getting set correctly
1 parent a1a80f2 commit 2620171

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/processing/core/PShape.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1603,7 +1603,7 @@ protected void drawPrimitive(PGraphics g) {
16031603
g.imageMode(CORNER);
16041604
g.image(image, params[0], params[1], params[2], params[3]);
16051605
} else {
1606-
g.rectMode(CORNER);
1606+
g.rectMode((int) params[4]);
16071607
g.rect(params[0], params[1], params[2], params[3]);
16081608
}
16091609

0 commit comments

Comments
 (0)